]> git.pld-linux.org Git - packages/crossavr-gdb.git/blob - gdb-gdbinit-stat.patch
- read .gdbinit from current directory only if owned by current user and not world...
[packages/crossavr-gdb.git] / gdb-gdbinit-stat.patch
1 --- gdb/main.c.orig     2005-04-08 18:21:50.000000000 -0400
2 +++ gdb/main.c  2005-04-08 18:41:15.000000000 -0400
3 @@ -693,7 +693,7 @@
4  
5    if (!homedir
6        || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat)))
7 -    if (!inhibit_gdbinit)
8 +    if (!inhibit_gdbinit && (cwdbuf.st_uid == getuid()) && (!cwdbuf.st_mode & (S_IWOTH)))
9        {
10         catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL);
11        }
This page took 0.029842 seconds and 3 git commands to generate.