The superuser isn't always named root, but does always have uid 0.

Signed-off-by: Jesse Adkins <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to