summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-05-12 14:00:18 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2010-05-20 21:11:52 +0200
commit7e7ec1abca069e9443f8eed49acec4ea32589d0c (patch)
treecb2a3b2760e09a591b77a41e092850c95a154869 /src/device.c
parent2b2fcf80841972b70ad695a5a1ed74487d4fd37a (diff)
Bug 28075 — Do not have all files executable on vfat
Enable the "showexec" vfat mount option, to avoid data files being executable (which causes confusing question dialogs in nautilus which only have one sensible answer). See http://www.kernel.org/doc/Documentation/filesystems/vfat.txt (search for "showexec") for the details of this option.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 12cab7c..763385c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5848,8 +5848,8 @@ typedef struct
/* ---------------------- vfat -------------------- */
-static const char *vfat_defaults[] = { "uid=", "gid=", "shortname=mixed", "dmask=0077", "utf8=1", NULL };
-static const char *vfat_allow[] = { "flush", "utf8=", "shortname=", "umask=", "dmask=", "fmask=", "codepage=", "iocharset=", "usefree", NULL };
+static const char *vfat_defaults[] = { "uid=", "gid=", "shortname=mixed", "dmask=0077", "utf8=1", "showexec", NULL };
+static const char *vfat_allow[] = { "flush", "utf8=", "shortname=", "umask=", "dmask=", "fmask=", "codepage=", "iocharset=", "usefree", "showexec", NULL };
static const char *vfat_allow_uid_self[] = { "uid=", NULL };
static const char *vfat_allow_gid_self[] = { "gid=", NULL };