mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 12:27:50 -04:00
16 lines
530 B
Plaintext
16 lines
530 B
Plaintext
$NetBSD: patch-aq,v 1.1 2007/07/03 12:41:18 lkundrak Exp $
|
|
|
|
Patch for CVE-2005-1705 from Gentoo #88398.
|
|
|
|
--- gdb/main.c.orig 2002-09-28 17:10:31.000000000 +0200
|
|
+++ gdb/main.c
|
|
@@ -626,7 +626,7 @@ extern int gdbtk_test (char *);
|
|
|
|
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);
|
|
}
|