]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/copydir.c: Remove unused parameter $3 of copy_symlink()
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Feb 2025 05:40:22 +0000 (06:40 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 6 Nov 2025 11:50:49 +0000 (12:50 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/copydir.c

index 1933381ce37d537a6326cd068dee192fc8e10152..5879f867e64abe6d3632c1b6cbe34d776bd0b0cd 100644 (file)
@@ -72,7 +72,6 @@ static int copy_dir (const struct path_info *src, const struct path_info *dst,
                      uid_t old_uid, uid_t new_uid,
                      gid_t old_gid, gid_t new_gid);
 static int copy_symlink (const struct path_info *src, const struct path_info *dst,
-                         MAYBE_UNUSED bool reset_selinux,
                          const struct stat *statp, const struct timespec mt[],
                          uid_t old_uid, uid_t new_uid,
                          gid_t old_gid, gid_t new_gid);
@@ -437,7 +436,7 @@ static int copy_entry (const struct path_info *src, const struct path_info *dst,
        */
 
        else if (S_ISLNK (sb.st_mode)) {
-               err = copy_symlink (src, dst, reset_selinux, &sb, mt,
+               err = copy_symlink (src, dst, &sb, mt,
                                    old_uid, new_uid, old_gid, new_gid);
        }
 
@@ -551,7 +550,6 @@ static int copy_dir (const struct path_info *src, const struct path_info *dst,
  *     Return 0 on success, -1 on error.
  */
 static int copy_symlink (const struct path_info *src, const struct path_info *dst,
-                         MAYBE_UNUSED bool reset_selinux,
                          const struct stat *statp, const struct timespec mt[],
                          uid_t old_uid, uid_t new_uid,
                          gid_t old_gid, gid_t new_gid)