Bug 28075 — Do not have files executable on NTFS
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 3 Jun 2010 10:09:29 +0000 (12:09 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 3 Jun 2010 10:09:29 +0000 (12:09 +0200)
Set fmask on NTFS devices to avoid having files being executable. This provides
a better default for almost all NTFS use cases under Linux, and avoids
confusing "show or execute?" questions in nautilus.

This is similar to what commit 7e7ec1 did for vfat, except that NTFS does not
have this handy "showexec" option.

src/device.c

index 0e87f1d..0bb6ec5 100644 (file)
@@ -5857,7 +5857,7 @@ static const char *vfat_allow_gid_self[] = { "gid=", NULL };
 /* ---------------------- ntfs -------------------- */
 /* this is assuming that ntfs-3g is used */
 
-static const char *ntfs_defaults[] = { "uid=", "gid=", "dmask=0077", NULL };
+static const char *ntfs_defaults[] = { "uid=", "gid=", "dmask=0077", "fmask=0177", NULL };
 static const char *ntfs_allow[] = { "umask=", "dmask=", "fmask=", NULL };
 static const char *ntfs_allow_uid_self[] = { "uid=", NULL };
 static const char *ntfs_allow_gid_self[] = { "gid=", NULL };