chgrp: Pass -1 as the owner ID to chown(3)
Otherwise, if the owner ID changes between stat() and chown(), we will revert to the previous owner while changing the group.
This commit is contained in:
Reference in New Issue
Block a user
Otherwise, if the owner ID changes between stat() and chown(), we will revert to the previous owner while changing the group.