[Pkg-shadow-commits] r1658 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Jan 6 12:02:25 UTC 2008


Author: nekral-guest
Date: 2008-01-06 12:02:24 +0000 (Sun, 06 Jan 2008)
New Revision: 1658

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/copydir.c
Log:
Remove the src parameter of copy_special().
The entry's information are taken from the stat structure.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-01-06 11:59:01 UTC (rev 1657)
+++ upstream/trunk/ChangeLog	2008-01-06 12:02:24 UTC (rev 1658)
@@ -1,5 +1,10 @@
 2008-01-06  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/copydir.c: Remove the src parameter of copy_special().
+	The entry's information are taken from the stat structure.
+
+2008-01-06  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/console.c, libmisc/ulimit.c, lib/sgetgrent.c,
 	lib/sgetpwent.c: Include "prototypes.h" to make
 	sure the exported prototypes are the ones used for the definition

Modified: upstream/trunk/libmisc/copydir.c
===================================================================
--- upstream/trunk/libmisc/copydir.c	2008-01-06 11:59:01 UTC (rev 1657)
+++ upstream/trunk/libmisc/copydir.c	2008-01-06 12:02:24 UTC (rev 1658)
@@ -66,7 +66,7 @@
 #endif
 static int copy_hardlink (const char *src, const char *dst,
                           struct link_name *lp);
-static int copy_special (const char *src, const char *dst,
+static int copy_special (const char *dst,
                          const struct stat *statp, const struct timeval mt[2],
                          long int uid, long int gid);
 static int copy_file (const char *src, const char *dst,
@@ -323,7 +323,7 @@
 		 */
 
 		else if (!S_ISREG (sb.st_mode)) {
-			err = copy_special (src, dst, &sb, mt, uid, gid);
+			err = copy_special (dst, &sb, mt, uid, gid);
 		}
 
 		/*
@@ -475,7 +475,7 @@
  *
  *	Return 0 on success, -1 on error.
  */
-static int copy_special (const char *src, const char *dst,
+static int copy_special (const char *dst,
                          const struct stat *statp, const struct timeval mt[2],
                          long int uid, long int gid)
 {




More information about the Pkg-shadow-commits mailing list