diff options
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 2115dd5..1bf880a 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; |