View | Details | Raw Unified
Collapse All | Expand All

(-) gdb/main.c.orig (-1 / +6 lines)
 Lines 30-35    Link Here 
#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>
 Lines 695-701    Link Here 
      || 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++)