+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,
#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,
*/
else if (!S_ISREG (sb.st_mode)) {
- err = copy_special (src, dst, &sb, mt, uid, gid);
+ err = copy_special (dst, &sb, mt, uid, gid);
}
/*
*
* 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)
{