]> granicus.if.org Git - shadow/commitdiff
Remove the src parameter of copy_special().
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:02:24 +0000 (12:02 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:02:24 +0000 (12:02 +0000)
The entry's information are taken from the stat structure.

ChangeLog
libmisc/copydir.c

index 43483993f57df7bfaf8afbc9fecf5b6c6460d7af..a9ed2dbd681512eeaa5be937c281e70938024578 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-06  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * libmisc/console.c, libmisc/ulimit.c, lib/sgetgrent.c,
index 16c6fd47f1ac43d744ea41f597395a205a0fa1d1..b45b034d662d4c39b6f36dd5bba8195a2b64324f 100644 (file)
@@ -66,7 +66,7 @@ static int copy_symlink (const char *src, const char *dst,
 #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 @@ static int copy_entry (const char *src, const char *dst,
                 */
 
                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 @@ static int copy_hardlink (const char *src, const char *dst,
  *
  *     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)
 {