diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-17 01:39:15 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-17 01:39:15 +0000 |
commit | 24071f37861e364435e4f09ff9045ba44c1d5eef (patch) | |
tree | 4bb69b3a2a0c796a82598d61e70d1c3102bbc959 | |
parent | 411934c3c6bc08aac18a88e46c0000e16a285efb (diff) |
(trivfs_S_file_chown): fixup
-rw-r--r-- | term/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/term/users.c b/term/users.c index dd0c7cdb..326f9205 100644 --- a/term/users.c +++ b/term/users.c @@ -453,8 +453,8 @@ trivfs_S_file_chown (struct trivfs_protid *cred, } /* Make sure GID is legitimate */ - for (i = 0; i < cred->ngids; i++) - if (cred->gids[i] == gid || cred->isroot) + for (i = 0; i < cred->ngids || cred->isroot; i++) + if (cred->isroot || cred->gids[i] == gid) { /* Make the change */ term_owner = uid; |