summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-mkdir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-01-04 02:35:25 +0000
committerRoland McGrath <roland@gnu.org>2002-01-04 02:35:25 +0000
commitaca5ba7fc76dca693cdf4539354daa6e4e27a2ac (patch)
tree1613c3d4228d664d88718b1f03bb0c226508b0ff /libdiskfs/dir-mkdir.c
parent587b5be05c41ee13059e8c1fbcf5f021f5d29d02 (diff)
2002-01-03 Roland McGrath <roland@frob.com>
* dir-lookup.c (diskfs_S_dir_lookup): Clear S_ITRANS bits in MODE. * dir-mkdir.c (diskfs_S_dir_mkdir): Likewise. * dir-mkfile.c (diskfs_S_dir_mkfile): Likewise.
Diffstat (limited to 'libdiskfs/dir-mkdir.c')
-rw-r--r--libdiskfs/dir-mkdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-mkdir.c b/libdiskfs/dir-mkdir.c
index 1f4ff0ea..30d7a3b4 100644
--- a/libdiskfs/dir-mkdir.c
+++ b/libdiskfs/dir-mkdir.c
@@ -1,5 +1,5 @@
/* libdiskfs implementation of fs.defs: dir_mkdir
- Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation
+ Copyright (C) 1992,93,94,95,96,97,2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -31,7 +31,7 @@ diskfs_S_dir_mkdir (struct protid *dircred,
if (!dircred)
return EOPNOTSUPP;
-
+
dnp = dircred->po->np;
if (diskfs_check_readonly ())
return EROFS;
@@ -51,7 +51,7 @@ diskfs_S_dir_mkdir (struct protid *dircred,
return error;
}
- mode &= ~(S_ISPARE | S_IFMT);
+ mode &= ~(S_ISPARE | S_IFMT | S_ITRANS);
mode |= S_IFDIR;
error = diskfs_create_node (dnp, name, mode, &np, dircred, ds);