Package: glob2 / 0.9.4.4-7

01_remove_home_directory_browsing.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
Author: David Martínez Moreno <[email protected]>
Description:
 Added patch for libgag/src/FileManager.cpp in order to remove my own home
 directory from first inspection by the included filemanager.  This can
 trigger big syslog growth when automount is active.  Can have undesirable
 effects in a system with automounter.
Debian-Bug: https://bugs.debian.org/408733

Index: libgag/src/FileManager.cpp
===================================================================
--- a/libgag/src/FileManager.cpp.orig	2008-03-08 06:27:16.000000000  0100
    b/libgag/src/FileManager.cpp	2008-05-06 21:06:11.295638046  0200
@@ -121,7  121,7 @@
 
 			if ((linksize   13) <= (int)sizeof(link))
 			{
-				strcat(link, "/share/glob2");
 				strcat(link, "/share/games/glob2");
 				addDir(link);
 			}
 		}
@@ -129,7  129,7 @@
 		#endif
 
 		addDir(PACKAGE_DATA_DIR);
-		addDir(PACKAGE_SOURCE_DIR);
 		//addDir(PACKAGE_SOURCE_DIR);
 		fileListIndex = -1;
 	}