From: Jim Meyering Date: Thu, 13 Mar 1997 05:19:54 +0000 (+0000) Subject: (change_file_group): Use uid of -1 to indicate X-Git-Tag: SH-UTILS-1_16a~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7017b8f67f23e377ae453d10cce5152a7ce94ab7;p=thirdparty%2Fcoreutils.git (change_file_group): Use uid of -1 to indicate we don't want to change the file's user ID. --- diff --git a/src/chgrp.c b/src/chgrp.c index 975cb61b9e..34bc865468 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -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) {