diff options
author | 2005-05-09 12:26:23 +0000 | |
---|---|---|
committer | 2005-05-09 12:26:23 +0000 | |
commit | 74bccce1d9441a1310836bc29f9df43536569683 (patch) | |
tree | 17fc748932ad55a8703244a2d93d3dd5682205c1 /sys-devel/gdb/files | |
parent | Fixed keywords (diff) | |
download | gentoo-2-74bccce1d9441a1310836bc29f9df43536569683.tar.gz gentoo-2-74bccce1d9441a1310836bc29f9df43536569683.tar.bz2 gentoo-2-74bccce1d9441a1310836bc29f9df43536569683.zip |
- Jan Postransky writes via email gdb doesn't read .gdbinit file in current working directory. I suggest putting parentheses arround the last condition like in the attached fix.
(Portage version: 2.0.51.21)
Diffstat (limited to 'sys-devel/gdb/files')
-rw-r--r-- | sys-devel/gdb/files/gdb-6.3-gdbinit-stat.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-devel/gdb/files/gdb-6.3-gdbinit-stat.patch b/sys-devel/gdb/files/gdb-6.3-gdbinit-stat.patch index 36e1289260e2..fac4584f9a7a 100644 --- a/sys-devel/gdb/files/gdb-6.3-gdbinit-stat.patch +++ b/sys-devel/gdb/files/gdb-6.3-gdbinit-stat.patch @@ -5,7 +5,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))) ++ if (!inhibit_gdbinit && (cwdbuf.st_uid == getuid()) && (!(cwdbuf.st_mode & (S_IWOTH)))) { catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL); } |