diff options
author | Jim Meyering <jim@meyering.net> | 1997-03-13 05:19:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-03-13 05:19:54 +0000 |
commit | 7017b8f67f23e377ae453d10cce5152a7ce94ab7 (patch) | |
tree | 2edf71f9ad958bd3d19ff11d575144f6e6c95dbb /src | |
parent | c230f7db00ee9926147d179826545697e06f2065 (diff) | |
download | coreutils-7017b8f67f23e377ae453d10cce5152a7ce94ab7.tar.xz |
(change_file_group): Use uid of -1 to indicate
we don't want to change the file's user ID.
Diffstat (limited to 'src')
-rw-r--r-- | src/chgrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chgrp.c b/src/chgrp.c index 975cb61b9..34bc86546 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) { |