]> git.pld-linux.org Git - packages/crossavr-gdb.git/commitdiff
- read .gdbinit from current directory only if owned by current user and not world... auto/ac/gdb-6_4-1 auto/ac/gdb-6_4-2 auto/th/gdb-6_4-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Dec 2005 12:04:28 +0000 (12:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdb-gdbinit-stat.patch -> 1.1

gdb-gdbinit-stat.patch [new file with mode: 0644]

diff --git a/gdb-gdbinit-stat.patch b/gdb-gdbinit-stat.patch
new file mode 100644 (file)
index 0000000..47820e4
--- /dev/null
@@ -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);
+       }
This page took 0.091039 seconds and 4 git commands to generate.