View | Details | Raw Unified
Collapse All | Expand All

(-) xc.orig/programs/Xserver/hw/xfree86/common/xf86Init.c (-2 / +2 lines)
 Lines 1376-1382    Link Here 
    }
    }
  
  
  /* First the options that are only allowed for root */
  /* First the options that are only allowed for root */
  if (getuid() == 0 || geteuid != 0)
  if (getuid() == 0 || geteuid() != 0)
  {
  {
    if (!strcmp(argv[i], "-modulepath"))
    if (!strcmp(argv[i], "-modulepath"))
    {
    {
 Lines 1679-1685    Link Here 
  }
  }
  if (!strcmp(argv[i], "-configure"))
  if (!strcmp(argv[i], "-configure"))
  {
  {
    if (getuid() != 0 && geteuid == 0) {
    if (getuid() != 0 && geteuid() == 0) {
	ErrorF("The '-configure' option can only be used by root.\n");
	ErrorF("The '-configure' option can only be used by root.\n");
	exit(1);
	exit(1);
    }
    }