]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/copydir.c: Remove unused parameter $2 of copy_hardlink()
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Feb 2025 05:41:48 +0000 (06:41 +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 5879f867e64abe6d3632c1b6cbe34d776bd0b0cd..5d91d201ed9f8f77be3775116e7c682d95c3bd29 100644 (file)
@@ -76,7 +76,6 @@ static int copy_symlink (const struct path_info *src, const struct path_info *ds
                          uid_t old_uid, uid_t new_uid,
                          gid_t old_gid, gid_t new_gid);
 static int copy_hardlink (const struct path_info *dst,
-                          MAYBE_UNUSED bool reset_selinux,
                           struct link_name *lp);
 static int copy_special (const struct path_info *src, const struct path_info *dst,
                          bool reset_selinux,
@@ -445,7 +444,7 @@ static int copy_entry (const struct path_info *src, const struct path_info *dst,
        */
 
        else if ((lp = check_link (src->full_path, &sb)) != NULL) {
-               err = copy_hardlink (dst, reset_selinux, lp);
+               err = copy_hardlink (dst, lp);
        }
 
        /*
@@ -620,7 +619,6 @@ static int copy_symlink (const struct path_info *src, const struct path_info *ds
  *     Return 0 on success, -1 on error.
  */
 static int copy_hardlink (const struct path_info *dst,
-                          MAYBE_UNUSED bool reset_selinux,
                           struct link_name *lp)
 {
        /* FIXME: selinux, ACL, Extended Attributes needed? */