diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-11-18 23:46:27 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-11-18 23:46:27 +0000 |
commit | c7dedd7240b8444673256b88521fe0acd7c835f6 (patch) | |
tree | c055cf2ae8f71c7d1c44ead05dc8b8496585ae1c /libdiskfs/fsys-getroot.c | |
parent | 729604c529d2165284b75de79ea9d42642b58950 (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/fsys-getroot.c')
-rw-r--r-- | libdiskfs/fsys-getroot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c index 62cf0b1a..024103dd 100644 --- a/libdiskfs/fsys-getroot.c +++ b/libdiskfs/fsys-getroot.c @@ -44,7 +44,6 @@ diskfs_S_fsys_getroot (fsys_t controlport, diskfs_control_class); error_t error = 0; mode_t type; - struct protid pseudocred; struct protid *newpi; struct iouser user; @@ -56,7 +55,7 @@ diskfs_S_fsys_getroot (fsys_t controlport, user.uids = make_idvec (); user.gids = make_idvec (); idvec_set_ids (user.uids, uids, nuids); - idvec_set_ids (uesr.gids, gids, ngids); + idvec_set_ids (user.gids, gids, ngids); #define drop_idvec() idvec_free (user.gids); idvec_free (user.uids) rwlock_reader_lock (&diskfs_fsys_lock); @@ -153,7 +152,7 @@ diskfs_S_fsys_getroot (fsys_t controlport, error = EROFS; else error = fshelp_access (&diskfs_root_node->dn_stat, - S_IWRITE, &pseudocred.user); + S_IWRITE, &user); } if (error) |