summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-17 01:39:15 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-17 01:39:15 +0000
commit24071f37861e364435e4f09ff9045ba44c1d5eef (patch)
tree4bb69b3a2a0c796a82598d61e70d1c3102bbc959
parent411934c3c6bc08aac18a88e46c0000e16a285efb (diff)
(trivfs_S_file_chown): fixup
-rw-r--r--term/users.c4
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;