mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 11:20:05 +01:00
xfree86: Makefile shouldn't rely on superuser being named 'root'
Change the 'chown' statement in Makefile.am to use the numeric UID
of superuser instead of relying on the name 'root'.
Bugzilla: https://bugs.freedesktop.org/27726
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Michał Górny <gentoo@mgorny.alt.pl>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 5c95be38e5)
This commit is contained in:
parent
2e66ed066e
commit
9e417072bc
1 changed files with 2 additions and 2 deletions
|
|
@ -108,14 +108,14 @@ endif
|
|||
install-exec-hook:
|
||||
(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
|
||||
if INSTALL_SETUID
|
||||
chown root $(DESTDIR)$(bindir)/Xorg
|
||||
chown 0 $(DESTDIR)$(bindir)/Xorg
|
||||
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
||||
endif
|
||||
if SUID_WRAPPER
|
||||
$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR)
|
||||
mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg
|
||||
${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg
|
||||
-chown root $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
|
||||
-chown 0 $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
|
||||
endif
|
||||
|
||||
uninstall-local:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue