Date: Wed, 22 May 2002 23:04:33 +0400
From: Eugene Grosbein <Eugene.Grosbein@f1.n5006.z2.fidonet.org>
Newsgroups: fido7.ru.unix.bsd
Subject: [FreeBSD] mount_msdos patch - раздельнве маски для файлов и каталогов
AD> а никто не делал патч на msdos fs дабы оно при noexec таки делало файлы
AD> неисполняемыми? ну или чтоб можно было маски для файлов и каталогов
AD> раздельно указывать, один хрен.
Index: sbin/mount_msdos/mount_msdos.8
RCS file: /home/ncvs/src/sbin/mount_msdos/Attic/mount_msdos.8,v
retrieving revision 1.19.2.1
diff -u -r1.19.2.1 mount_msdos.8
- --- sbin/mount_msdos/mount_msdos.8 8 Dec 2000 14:03:59 -0000 1.19.2.1
+++ sbin/mount_msdos/mount_msdos.8 19 Jan 2002 05:55:22 -0000
@@ -42,6 +42,7 @@
.Op Fl u Ar uid
.Op Fl g Ar gid
.Op Fl m Ar mask
+.Op Fl M Ar mask
.Op Fl s
.Op Fl l
.Op Fl 9
@@ -105,11 +106,22 @@
for more information about octal file modes.)
Only the nine low-order bits of
.Ar mask
-are used.
+are used. The value of
+.Ar -M
+is used if it is supplied and
+.Ar -m
+is omitted.
The default
.Ar mask
is taken from the
directory on which the file system is being mounted.
+.It Fl M Ar mask
+Specify the maximum file permissions for directories
+in the file system. The value of
+.Ar -m
+is used if it is supplied and
+.Ar -M
+is omitted. See description of previous option for details.
.It Fl s
Force behaviour to
ignore and not generate Win'95 long filenames.
Index: sbin/mount_msdos/mount_msdos.c