View | Details | Raw Unified
Collapse All | Expand All

(-) gdb/main.c.orig (-1 / +1 lines)
 Lines 693-699    Link Here 
  if (!homedir
  if (!homedir
      || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat)))
      || 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);
	catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL);
      }
      }