diff options
-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) { |