[Pkg-shadow-commits] r2365 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Sep 7 00:51:18 UTC 2008
Author: nekral-guest
Date: 2008-09-07 00:51:17 +0000 (Sun, 07 Sep 2008)
New Revision: 2365
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/copydir.c
Log:
* libmisc/copydir.c: Call utimes() after closing the file.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-09-07 00:05:38 UTC (rev 2364)
+++ upstream/trunk/ChangeLog 2008-09-07 00:51:17 UTC (rev 2365)
@@ -2,6 +2,7 @@
* libmisc/copydir.c, configure.in: Check for the presence of
st_mtim and st_mtimensec, as for st_atim and st_atimensec.
+ * libmisc/copydir.c: Call utimes() after closing the file.
2008-09-07 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/libmisc/copydir.c
===================================================================
--- upstream/trunk/libmisc/copydir.c 2008-09-07 00:05:38 UTC (rev 2364)
+++ upstream/trunk/libmisc/copydir.c 2008-09-07 00:51:17 UTC (rev 2365)
@@ -566,16 +566,18 @@
if (futimes (ofd, mt) != 0) {
return -1;
}
-#else
- if (utimes(dst, mt) != 0) {
- return -1;
- }
#endif
if (close (ofd) != 0) {
return -1;
}
+#ifndef HAVE_FUTIMES
+ if (utimes(dst, mt) != 0) {
+ return -1;
+ }
+#endif
+
return err;
}
More information about the Pkg-shadow-commits
mailing list