Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 88398 | Differences between
and this patch

Collapse All | Expand All

(-)gdb/main.c.orig (-1 / +6 lines)
Lines 30-35 Link Here
30
30
31
#include "getopt.h"
31
#include "getopt.h"
32
32
33
#include <sys/stat,h>
33
#include <sys/types.h>
34
#include <sys/types.h>
34
#include "gdb_stat.h"
35
#include "gdb_stat.h"
35
#include <ctype.h>
36
#include <ctype.h>
Lines 695-701 Link Here
695
      || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat)))
696
      || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat)))
696
    if (!inhibit_gdbinit)
697
    if (!inhibit_gdbinit)
697
      {
698
      {
698
	catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL);
699
	struct stat st;
700
	if ((stat(gdbinit, &st)) != (-1)) {
701
	  if (st.st_uid == getuid())
702
	  	catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL);
703
	}
699
      }
704
      }
700
705
701
  for (i = 0; i < ncmd; i++)
706
  for (i = 0; i < ncmd; i++)

Return to bug 88398