[debian-edu-commits] debian-edu/pkg-team/ 101/159: allow system-wide Xsession to be a shell script without shebang

Dominik George natureshadow-guest at moszumanska.debian.org
Tue Feb 23 10:04:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository xrdp.

commit f4464fe96cb23ce38b9ca7b93c8547d73af5b0b4
Author: mirabilos <tg at mirbsd.org>
Date:   Wed Aug 26 22:23:26 2015 +0200

    allow system-wide Xsession to be a shell script without shebang
---
 startwm.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/startwm.sh b/startwm.sh
index 2be625f..6e7b720 100755
--- a/startwm.sh
+++ b/startwm.sh
@@ -21,4 +21,5 @@ if test -r /etc/default/locale; then
 	test -z "${LOCPATH+x}" || export LOCPATH
 fi
 
-exec /etc/X11/Xsession
+test -x /etc/X11/Xsession && exec /etc/X11/Xsession
+exec /bin/sh /etc/X11/Xsession

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/xrdp.git



More information about the debian-edu-commits mailing list