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/dir-init.c | |
parent | 729604c529d2165284b75de79ea9d42642b58950 (diff) | |
download | hurd-c7dedd7240b8444673256b88521fe0acd7c835f6.tar.gz hurd-c7dedd7240b8444673256b88521fe0acd7c835f6.tar.bz2 hurd-c7dedd7240b8444673256b88521fe0acd7c835f6.zip |
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/dir-init.c')
-rw-r--r-- | libdiskfs/dir-init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/dir-init.c b/libdiskfs/dir-init.c index 67dc34eb..f44c4bec 100644 --- a/libdiskfs/dir-init.c +++ b/libdiskfs/dir-init.c @@ -28,10 +28,13 @@ diskfs_init_dir (struct node *dp, struct node *pdp, struct protid *cred) struct dirstat *ds = alloca (diskfs_dirstat_size); struct node *foo; error_t err; + + /* Fabricate a protid that represents root credentials. */ static uid_t zero = 0; + static struct idvec vec = {&zero, 1, 1}; + static struct iouser user = {&vec, &vec, 0}; static struct protid lookupcred = {{0, 0, 0, 0}, - &zero, &zero, 1, 1, - 0, 0}; + &user, 0, 0, 0}; /* New links */ if (pdp->dn_stat.st_nlink == diskfs_link_max - 1) |