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

Collapse All | Expand All

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

Return to bug 125803