diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2008-03-19 14:46:59 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2008-03-19 14:46:59 +0000 |
commit | 76fd2245b5dc6793b57cc7c3bf4fc6af7a352563 (patch) | |
tree | 0ae354b8af76926a31947d53202545980b36afe4 /contrib/cvs/src/vers_ts.c | |
parent | 274835303c48ac29e7fd30a670e7a02fe78595e2 (diff) |
Notes
Diffstat (limited to 'contrib/cvs/src/vers_ts.c')
-rw-r--r-- | contrib/cvs/src/vers_ts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/cvs/src/vers_ts.c b/contrib/cvs/src/vers_ts.c index 2115dd5817fb..1bf880a10056 100644 --- a/contrib/cvs/src/vers_ts.c +++ b/contrib/cvs/src/vers_ts.c @@ -361,6 +361,9 @@ time_stamp (file) { mtime = sb.st_mtime; } + else if (! existence_error (errno)) + error (0, errno, "cannot lstat %s", file); + /* If it's a symlink, return whichever is the newest mtime of the link and its target, for safety. */ @@ -369,6 +372,9 @@ time_stamp (file) if (mtime < sb.st_mtime) mtime = sb.st_mtime; } + else if (! existence_error (errno)) + error (0, errno, "cannot stat %s", file); + if (mtime) { struct tm *tm_p; |