[Pkg-shadow-commits] r2294 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Aug 30 18:29:56 UTC 2008
Author: nekral-guest
Date: 2008-08-30 18:29:55 +0000 (Sat, 30 Aug 2008)
New Revision: 2294
Modified:
upstream/trunk/ChangeLog
upstream/trunk/NEWS
upstream/trunk/libmisc/copydir.c
Log:
* NEWS: Added support for uclibc.
* configure.in, libmisc/copydir.c: futimes() and lutimes() are not
standard. Check if they are implemented before using them. Do not
set the time of links if lutimes() does not exist, and use
utimes() as a replacement for futimes().
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-08-30 18:29:31 UTC (rev 2293)
+++ upstream/trunk/ChangeLog 2008-08-30 18:29:55 UTC (rev 2294)
@@ -1,3 +1,11 @@
+2008-08-26 Tobias <tp at fonz.de>
+
+ * NEWS: Added support for uclibc.
+ * configure.in, libmisc/copydir.c: futimes() and lutimes() are not
+ standard. Check if they are implemented before using them. Do not
+ set the time of links if lutimes() does not exist, and use
+ utimes() as a replacement for futimes().
+
2008-08-26 Nicolas François <nicolas.francois at centraliens.net>
* src/groupmems.c: Handle the options alphabetically.
Modified: upstream/trunk/NEWS
===================================================================
--- upstream/trunk/NEWS 2008-08-30 18:29:31 UTC (rev 2293)
+++ upstream/trunk/NEWS 2008-08-30 18:29:55 UTC (rev 2294)
@@ -5,6 +5,7 @@
*** general:
- packaging
* Added support for OpenPAM.
+ * Added support for uclibc.
- gpasswd
* Added support for long options --add (-a), --delete (-d),
Modified: upstream/trunk/libmisc/copydir.c
===================================================================
--- upstream/trunk/libmisc/copydir.c 2008-08-30 18:29:31 UTC (rev 2293)
+++ upstream/trunk/libmisc/copydir.c 2008-08-30 18:29:55 UTC (rev 2294)
@@ -431,12 +431,14 @@
return -1;
}
+#ifdef HAVE_LUTIMES
/* 2007-10-18: We don't care about
* exit status of lutimes because
* it returns ENOSYS on many system
* - not implemented
*/
lutimes (dst, mt);
+#endif
return err;
}
@@ -548,9 +550,15 @@
(void) close (ifd);
+#ifdef HAVE_FUTIMES
if (futimes (ofd, mt) != 0) {
return -1;
}
+#else
+ if (utimes(dst, mt) != 0) {
+ return -1;
+ }
+#endif
if (close (ofd) != 0) {
return -1;
More information about the Pkg-shadow-commits
mailing list