Blame SOURCES/patch-2.7.6-avoid-set_file_attributes-sign-conversion-warnings.patch

796689
commit 3bbebbb29f6fbbf2988b9f2e75695b7c0b1f1c9b
796689
Author: Andreas Gruenbacher <agruen@gnu.org>
796689
Date:   Wed Feb 7 12:01:22 2018 +0100
796689
796689
    Avoid set_file_attributes sign conversion warnings
796689
    
796689
    * src/util.c (set_file_attributes): Avoid sign conversion warnings when
796689
    assigning -1 to uid_t / gid_t.
796689
796689
diff --git a/src/util.c b/src/util.c
796689
index b1c7266..1cc08ba 100644
796689
--- a/src/util.c
796689
+++ b/src/util.c
796689
@@ -256,8 +256,8 @@ set_file_attributes (char const *to, enum file_attributes attr,
796689
     }
796689
   if (attr & FA_IDS)
796689
     {
796689
-      static uid_t euid = -1;
796689
-      static gid_t egid = -1;
796689
+      static uid_t euid = (uid_t)-1;
796689
+      static gid_t egid = (gid_t)-1;
796689
       uid_t uid;
796689
       uid_t gid;
796689