mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
644 B

  1. --- ./programs/Xserver/hw/xfree86/common/xf86Init.c.orig 2006-03-17 23:30:10.000000000 +0200
  2. +++ ./programs/Xserver/hw/xfree86/common/xf86Init.c 2006-03-17 23:29:35.000000000 +0200
  3. @@ -1376,7 +1376,7 @@
  4. }
  5. /* First the options that are only allowed for root */
  6. - if (getuid() == 0 || geteuid != 0)
  7. + if (getuid() == 0 || geteuid() != 0)
  8. {
  9. if (!strcmp(argv[i], "-modulepath"))
  10. {
  11. @@ -1679,7 +1679,7 @@
  12. }
  13. if (!strcmp(argv[i], "-configure"))
  14. {
  15. - if (getuid() != 0 && geteuid == 0) {
  16. + if (getuid() != 0 && geteuid() == 0) {
  17. ErrorF("The '-configure' option can only be used by root.\n");
  18. exit(1);
  19. }