File: diskfs_no_inherit_dir_group.patch

package info (click to toggle)
hurd 1%3A0.9.git20250801-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 37,308 kB
  • sloc: ansic: 538,797; sh: 5,143; asm: 2,998; makefile: 2,303; perl: 589; pascal: 484; awk: 157
file content (33 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download
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
30
31
32
33
Follow POSIX rules for gid of new nodes.
---
 opts-common.c |    2 +-
 libdiskfs/init-init.c |    3 +++
 2 file changed, 4 insertion(+), 1 deletion(-)

Index: hurd-debian/libdiskfs/init-init.c
===================================================================
--- hurd-debian.orig/libdiskfs/init-init.c
+++ hurd-debian/libdiskfs/init-init.c
@@ -59,6 +59,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.  */
     {
Index: hurd-debian/libdiskfs/opts-common.c
===================================================================
--- hurd-debian.orig/libdiskfs/opts-common.c
+++ hurd-debian/libdiskfs/opts-common.c
@@ -53,7 +53,7 @@ const struct argp_option diskfs_common_o
   {"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},
   {"relatime", 'R', 0, 0,