Package: gnome-vfs / 1:2.24.4-6

06_blacklist-directories.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
unchanged:
Index: gnome-vfs-2.24.2/libgnomevfs/gnome-vfs-hal-mounts.c
===================================================================
--- gnome-vfs-2.24.2.orig/libgnomevfs/gnome-vfs-hal-mounts.c	2010-02-06 11:55:45.209277862 +0100
+++ gnome-vfs-2.24.2/libgnomevfs/gnome-vfs-hal-mounts.c	2010-02-06 11:55:46.357284162 +0100
@@ -645,6 +645,19 @@
 		"/var",
 		"/proc",
 		"/sbin",
+		"/usr/local",
+		"/var/local",
+		"/var/crash",
+		"/var/mail",
+		"/var/run",
+		"/var/tmp",
+ 		NULL
+ 	};
+
+	const char *fhs23_recursive_toplevel_mount_points[] = {
+ 		"/live/cow",
+ 		"/live/image",
+ 		"/live/installer",
 		NULL
 	};
 
@@ -694,6 +707,12 @@
 				if (strcmp (mount_point, fhs23_toplevel_mount_points[i]) == 0)
 					goto out;
 			}
+
+			for (i = 0; fhs23_recursive_toplevel_mount_points[i] != NULL; i++) {
+				if (strncmp (mount_point, fhs23_recursive_toplevel_mount_points[i],
+					    strlen(fhs23_recursive_toplevel_mount_points[i])) == 0)
+					goto out;
+			}
 		}
 	}
 #if 0