aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-07 19:03:53 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-07 19:03:53 +0000
commit19d0f00234b0884a31c8bd4b806c6d512baae9be (patch)
treeb1fbd27e19126286009ba2486e1fc49886b8d8d7 /libdiskfs
parentfeecb48f23f7e3cff12f14a579a56b8b8143b275 (diff)
downloadhurd-19d0f00234b0884a31c8bd4b806c6d512baae9be.tar.gz
hurd-19d0f00234b0884a31c8bd4b806c6d512baae9be.tar.bz2
hurd-19d0f00234b0884a31c8bd4b806c6d512baae9be.zip
*** empty log message ***
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/ChangeLog6
-rw-r--r--libdiskfs/node-create.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog
index 6d0fa719..531ad50b 100644
--- a/libdiskfs/ChangeLog
+++ b/libdiskfs/ChangeLog
@@ -1,3 +1,9 @@
+Wed Aug 7 13:53:56 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * node-create.c (diskfs_create_node): New files always copy GID
+ from their parent; that's NetBSD's behavior, and it's good enough
+ for me.
+
Thu Aug 1 17:24:08 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* file-get-transcntl.c (diskfs_S_file_get_translator_cntl): Don't
diff --git a/libdiskfs/node-create.c b/libdiskfs/node-create.c
index 3f8dc4c1..11f5b0fe 100644
--- a/libdiskfs/node-create.c
+++ b/libdiskfs/node-create.c
@@ -64,15 +64,9 @@ diskfs_create_node (struct node *dir,
goto change_err;
np->dn_stat.st_uid = newuid;
- if (diskfs_groupmember (dir->dn_stat.st_gid, cred))
- newgid = dir->dn_stat.st_gid;
- else if (cred->ngids)
- newgid = cred->gids[0];
- else
- {
- newgid = dir->dn_stat.st_gid;
- mode &= ~S_ISGID;
- }
+ newgid = dir->dn_stat.st_gid;
+ if (!diskfs_groupmember (newgid, cred))
+ mode &= ~S_ISGID;
err = diskfs_validate_group_change (np, newgid);
if (err)
goto change_err;