Author: qboosh Date: Thu Dec 8 12:04:33 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- read .gdbinit from current directory only if owned by current user and not
world-writable (from Gentoo)
---- Files affected:
SOURCES:
gdb-gdbinit-stat.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/gdb-gdbinit-stat.patch
diff -u /dev/null SOURCES/gdb-gdbinit-stat.patch:1.1
--- /dev/null Thu Dec 8 13:04:33 2005
+++ SOURCES/gdb-gdbinit-stat.patch Thu Dec 8 13:04:28 2005
@@ -0,0 +1,11 @@
+--- gdb/main.c.orig 2005-04-08 18:21:50.000000000 -0400
++++ gdb/main.c 2005-04-08 18:41:15.000000000 -0400
+@@ -693,7 +693,7 @@
+
+ if (!homedir
+ || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat)))
+- if (!inhibit_gdbinit)
++ if (!inhibit_gdbinit && (cwdbuf.st_uid == getuid()) && (!cwdbuf.st_mode &
(S_IWOTH)))
+ {
+ catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL);
+ }
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit