[PATCH] xfree86: Chown Xorg to 0, not root. (bug 28249)
Jesse Adkins
jesserayadkins at gmail.com
Fri Oct 15 15:09:12 PDT 2010
The superuser isn't always named root, but does always have uid 0.
Signed-off-by: Jesse Adkins <jesserayadkins at gmail.com>
---
hw/xfree86/Makefile.am | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 116113b..cd4a0ac 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -104,7 +104,8 @@ install-data-local:
install-exec-local: install-binPROGRAMS
(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
if INSTALL_SETUID
- chown root $(DESTDIR)$(bindir)/Xorg
+# The superuser is not always 'root', but is always uid 0.
+ chown 0 $(DESTDIR)$(bindir)/Xorg
chmod u+s $(DESTDIR)$(bindir)/Xorg
endif
--
1.7.1
More information about the xorg-devel
mailing list