summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-mkfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/dir-mkfile.c')
-rw-r--r--libdiskfs/dir-mkfile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdiskfs/dir-mkfile.c b/libdiskfs/dir-mkfile.c
index cdfe6e31..a95f9b34 100644
--- a/libdiskfs/dir-mkfile.c
+++ b/libdiskfs/dir-mkfile.c
@@ -46,7 +46,7 @@ diskfs_S_dir_mkfile (struct protid *cred,
mutex_unlock (&dnp->lock);
return ENOTDIR;
}
- err = diskfs_access (dnp, S_IWRITE, cred);
+ err = fshelp_access (&dnp->dn_stat, S_IWRITE, cred->user);
if (err)
{
mutex_unlock (&dnp->lock);
@@ -70,9 +70,7 @@ diskfs_S_dir_mkfile (struct protid *cred,
flags &= (O_READ | O_WRITE | O_EXEC);
err = diskfs_create_protid (diskfs_make_peropen (np, flags,
cred->po->dotdotport),
- cred->uids, cred->nuids,
- cred->gids, cred->ngids,
- &newpi);
+ cred->user, &newpi);
if (! err)
{
*newnode = ports_get_right (newpi);