diff options
author | Miles Bader <miles@gnu.org> | 1997-02-22 05:19:55 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-22 05:19:55 +0000 |
commit | 7f3155f47671c217c8f507d22a601068ce68ee94 (patch) | |
tree | ae97009342c5f7ecaa19f9f8d626e33ddb1848c8 | |
parent | 34f838cddbbb3dad55ac57c928c64b7834d4b125 (diff) |
(diskfs_init_dir):
Use CRED->po as LOOKUPCRED's po, so that root detection works (and doesn't
crash).
-rw-r--r-- | libdiskfs/dir-init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdiskfs/dir-init.c b/libdiskfs/dir-init.c index 2ba5d1a1..2cba3a4b 100644 --- a/libdiskfs/dir-init.c +++ b/libdiskfs/dir-init.c @@ -33,8 +33,7 @@ diskfs_init_dir (struct node *dp, struct node *pdp, struct protid *cred) 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}, - &user, 0, 0, 0}; + struct protid lookupcred = {{0, 0, 0, 0}, &user, cred->po, 0, 0}; /* New links */ if (pdp->dn_stat.st_nlink == diskfs_link_max - 1) |