One more fix in set_modtime() when we get ENOSYS on a symlink.

This commit is contained in:
Wayne Davison committed 2008-02-10 15:39:21 -08:00
1 parent d348d5fd5f
commit a5bb0902b4
1 file changed
+2 -2
+2 -2
View File
@@ -147,8 +147,8 @@ int set_modtime(const char *fname, time_t modtime, mode_t mode)
t[1].tv_usec = 0;
# ifdef HAVE_LUTIMES
if (S_ISLNK(mode)) {
if (lutimes(fname, t) < 0 && errno != ENOSYS)
return -1;
if (lutimes(fname, t) < 0)
return errno == ENOSYS ? 1 : -1;
return 0;
}
# endif