|
|
| |
#include "getopt.h" | #include "getopt.h" |
| |
|
#include <sys/stat,h> |
#include <sys/types.h> | #include <sys/types.h> |
#include "gdb_stat.h" | #include "gdb_stat.h" |
#include <ctype.h> | #include <ctype.h> |
|
|
|| memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) | || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) |
if (!inhibit_gdbinit) | if (!inhibit_gdbinit) |
{ | { |
catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL); |
struct stat st; |
|
if ((stat(gdbinit, &st)) != (-1)) { |
|
if (st.st_uid == getuid()) |
|
catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL); |
|
} |
} | } |
| |
for (i = 0; i < ncmd; i++) | for (i = 0; i < ncmd; i++) |