![]() ![]() | ![]() |
version 1.33, 2006/02/26 09:45:02 | version 1.34, 2006/03/06 15:04:17 | ||
---|---|---|---|
|
|
||
struct stat st; | struct stat st; | ||
BUF *buf; | BUF *buf; | ||
if ((fd = open(path, O_RDONLY, 0600)) == -1) | if ((fd = open(path, O_RDONLY, 0600)) == -1) { | ||
fatal("%s: %s", path, strerror(errno)); | cvs_log(LP_ERRNO, "%s: %s", path, strerror(errno)); | ||
return (NULL); | |||
} | |||
if (fstat(fd, &st) == -1) | if (fstat(fd, &st) == -1) | ||
fatal("cvs_buf_load: fstat: %s", strerror(errno)); | fatal("cvs_buf_load: fstat: %s", strerror(errno)); |