From c7dedd7240b8444673256b88521fe0acd7c835f6 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 18 Nov 1996 23:46:27 +0000 Subject: Fri Nov 15 14:06:16 1996 Thomas Bushnell, n/BSG * 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 * 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 * diskfs.h: Correctly close comment. --- libdiskfs/file-chown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/file-chown.c') diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c index 04546bf0..c2e13384 100644 --- a/libdiskfs/file-chown.c +++ b/libdiskfs/file-chown.c @@ -28,7 +28,7 @@ diskfs_S_file_chown (struct protid *cred, ({ err = fshelp_isowner (&np->dn_stat, cred->user); if (err - || ((!idvec_contains (cred->user->uids, cred) + || ((!idvec_contains (cred->user->uids, uid) || !idvec_contains (cred->user->gids, gid)) && !idvec_contains (cred->user->uids, 0))) err = EPERM; -- cgit v1.2.3