Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--from
1 parent f48bed8 commit de3d12cCopy full SHA for de3d12c
userland/utilities/chgrp.py
@@ -188,8 +188,8 @@ def chown(file: Path) -> None:
188
# this point because even if they are the same, an error should be
189
# printed if the current user has insufficient permission to change
190
# the group membership of that file (for coreutils compat).
191
- if (from_uid is not None and prev_uid == from_uid) or (
192
- from_gid is not None and prev_gid == from_gid
+ if (from_uid is not None and prev_uid != from_uid) or (
+ from_gid is not None and prev_gid != from_gid
193
):
194
if opts.verbosity > 2:
195
print(f"group of '{file}' retained as {prev_gname}")
0 commit comments