summaryrefslogtreecommitdiff
path: root/libdiskfs/io-restrict-auth.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-11-18 23:46:27 +0000
committerThomas Bushnell <thomas@gnu.org>1996-11-18 23:46:27 +0000
commitc7dedd7240b8444673256b88521fe0acd7c835f6 (patch)
treec055cf2ae8f71c7d1c44ead05dc8b8496585ae1c /libdiskfs/io-restrict-auth.c
parent729604c529d2165284b75de79ea9d42642b58950 (diff)
Fri Nov 15 14:06:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* protid-make.c (diskfs_finish_protid): Fix typo. * file-chown.c (diskfs_S_file_chown): Look for UID, not CRED in the uid set. * dir-lookup.c (diskfs_S_dir_lookup): Make the unauthenticated port correctly. Thu Nov 14 13:07:37 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * dir-init.c (diskfs_init_dir): New vars VEC and USER; fabricate LOOKUPCRED to correspond to new structure definitions. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Declare I and add a missing semicolon. * fsys-getroot.c (diskfs_S_fsys_getroot): Eliminate PSEUDOCRED entirely. Fix unrelated typo. * file-chauthor.c (dithkfth_TH_file_chauthor): Fix first arg in call to fthhelp_ithowner. Tue Nov 12 22:45:07 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h: Correctly close comment.
Diffstat (limited to 'libdiskfs/io-restrict-auth.c')
-rw-r--r--libdiskfs/io-restrict-auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/io-restrict-auth.c b/libdiskfs/io-restrict-auth.c
index 76e15dfa..0a3a5021 100644
--- a/libdiskfs/io-restrict-auth.c
+++ b/libdiskfs/io-restrict-auth.c
@@ -42,6 +42,7 @@ diskfs_S_io_restrict_auth (struct protid *cred,
error_t err;
struct idvec *uvec, *gvec;
struct protid *newpi;
+ int i;
if (!cred)
return EOPNOTSUPP;
@@ -63,7 +64,7 @@ diskfs_S_io_restrict_auth (struct protid *cred,
idvec_add (uvec, cred->user->uids->ids[i]);
for (i = 0; i < cred->user->gids->num; i++)
if (listmember (gids, cred->user->gids->ids[i], ngids))
- idvec_add (gvec, cred->user->gids->ids[i])
+ idvec_add (gvec, cred->user->gids->ids[i]);
}
mutex_lock (&cred->po->np->lock);