summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-03-13 05:19:54 +0000
committerJim Meyering <jim@meyering.net>1997-03-13 05:19:54 +0000
commit7017b8f67f23e377ae453d10cce5152a7ce94ab7 (patch)
tree2edf71f9ad958bd3d19ff11d575144f6e6c95dbb /src
parentc230f7db00ee9926147d179826545697e06f2065 (diff)
downloadcoreutils-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.c4
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)
{