summaryrefslogtreecommitdiff
blob: e1c282319cf2cfac0cb75b982958d3fee14208d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ur gnome-mount-0.4-orig/src/gnome-mount.c gnome-mount-0.4/src/gnome-mount.c
--- gnome-mount-0.4-orig/src/gnome-mount.c	2006-02-24 00:14:23.000000000 -0500
+++ gnome-mount-0.4/src/gnome-mount.c	2006-08-25 13:56:00.000000000 -0400
@@ -651,6 +651,13 @@
 			snprintf (uidbuf, sizeof (uidbuf) - 1, "uid=%u", getuid ());
 			g_ptr_array_add (options, uidbuf);
 		}
+	} else if (strcmp (fstype, "ntfs-3g") == 0) {
+		/* needed for FUSE to mount */
+		g_ptr_array_add (options, "nonempty");
+		if (opts & MOUNT_UID) {
+			snprintf (uidbuf, sizeof (uidbuf) - 1, "uid=%u", getuid ());
+			g_ptr_array_add (options, uidbuf);
+		}
 	} else if (strcmp (fstype, "iso9660") == 0) {
 		if (opts & MOUNT_UID) {
 			snprintf (uidbuf, sizeof (uidbuf) - 1, "uid=%u", getuid ());