]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(change_file_group): Use uid of -1 to indicate
authorJim Meyering <jim@meyering.net>
Thu, 13 Mar 1997 05:19:54 +0000 (05:19 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 13 Mar 1997 05:19:54 +0000 (05:19 +0000)
we don't want to change the file's user ID.

src/chgrp.c

index 975cb61b9e9820473ace25523d8bfd149efdab96..34bc8654689dabd8739d7523bbe1fa3273df9c9b 100644 (file)
@@ -178,9 +178,9 @@ change_file_group (const char *file, int group)
        describe_change (file, 1);
 
       if (change_symlinks)
-       fail = LCHOWN (file, file_stats.st_uid, group);
+       fail = LCHOWN (file, (uid_t) -1, group);
       else
-       fail = chown (file, file_stats.st_uid, group);
+       fail = chown (file, (uid_t) -1, group);
 
       if (fail)
        {