summaryrefslogtreecommitdiff
path: root/debian/patches/diskfs_no_inherit_dir_group.patch
blob: 8d17f3e0575d01ae6673e7b2f47dbd3f8e6752bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Follow POSIX rules for gid of new nodes.
---
 opts-common.c |    2 +-
 libdiskfs/init-init.c |    3 +++
 2 file changed, 4 insertion(+), 1 deletion(-)

--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -57,6 +57,9 @@ diskfs_init_diskfs (void)
 {
   error_t err;
 
+  /* See `node-create.c'.  */
+  _diskfs_no_inherit_dir_group = 1;
+
   if (diskfs_boot_filesystem ())
     /* This is a boot filesystem, we have to do some things specially.  */
     {
--- a/libdiskfs/opts-common.c
+++ b/libdiskfs/opts-common.c
@@ -52,7 +52,7 @@ const struct argp_option diskfs_common_options[] =
   {"nogrpid",    0,   0, OPTION_ALIAS | OPTION_HIDDEN},
   {"sysvgroups", 0,   0, OPTION_ALIAS | OPTION_HIDDEN},
   {"inherit-dir-group", OPT_INHERIT_DIR_GROUP, 0, 0,
-   "Create new nodes with gid of parent dir (default)"},
+   "Create new nodes with gid of parent dir"},
   {"grpid",    0,   0, OPTION_ALIAS | OPTION_HIDDEN},
   {"bsdgroups", 0,   0, OPTION_ALIAS | OPTION_HIDDEN},
   {0, 0}