use dmask 0077 by default when mounting vfat volumes
authorDavid Zeuthen <davidz@redhat.com>
Mon, 2 Mar 2009 14:31:19 +0000 (09:31 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 2 Mar 2009 14:31:19 +0000 (09:31 -0500)
This is to make the contents readable only by the user mounting the
file system. This can be overridden by passing the dmask=XYZ option to
FilesystemMount() method.

src/devkit-disks-device.c

index 9bf958b..7c45806 100644 (file)
@@ -3875,6 +3875,7 @@ typedef struct {
 static const char *vfat_defaults[] =       {"uid=",
                                             "gid=",
                                             "shortname=lower",
+                                            "dmask=0077",
                                             NULL};
 static const char *vfat_allow[] =          {"utf8",
                                             "shortname=",