From ee780c43a31df046cf9ec469b6a1266e6d1e1a39 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 6 Feb 1997 08:32:15 +0000 Subject: (diskfs_S_dir_mkfile): New file's depth is one greater than CRED's. --- libdiskfs/dir-mkfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/dir-mkfile.c') diff --git a/libdiskfs/dir-mkfile.c b/libdiskfs/dir-mkfile.c index 84964812..e49143d2 100644 --- a/libdiskfs/dir-mkfile.c +++ b/libdiskfs/dir-mkfile.c @@ -70,7 +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->po->depth), + cred->po->depth + 1), cred->user, &newpi); if (! err) { -- cgit v1.2.3