[X2Go-Commits] [x2goserver] 01/05: x2goserver-xsession/etc/Xsession: fix uname calls when (potentially) creating session log/error file and add uname call where necessary.

git-admin at x2go.org git-admin at x2go.org
Sat Aug 13 03:45:18 CEST 2016


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

x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.

commit f8c89a6490b6e0fe06d6fc5dc8842752a0dc2946
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Aug 13 03:14:47 2016 +0200

    x2goserver-xsession/etc/Xsession: fix uname calls when (potentially) creating session log/error file and add uname call where necessary.
---
 debian/changelog                 |    2 ++
 x2goserver-xsession/etc/Xsession |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c4b6ba1..c36f85e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -86,6 +86,8 @@ x2goserver (4.0.1.20-0x2go1) UNRELEASED; urgency=low
       -h, -? and --man options. Fixes: #1065. Also print a usage message on
       unknown options.
     - x2goserver/man/man8/x2gocleansessions.8: drop obsolete man page.
+    - x2goserver-xsession/etc/Xsession: fix uname calls when (potentially)
+      creating session log/error file and add uname call where necessary.
   * x2goserver.spec:
     - Add sudo and logcheck as BuildRequires and Requires. Don't own
       directories that are owned by sudo and logcheck. Logcheck is not
diff --git a/x2goserver-xsession/etc/Xsession b/x2goserver-xsession/etc/Xsession
index 7ad477f..5bfc60a 100755
--- a/x2goserver-xsession/etc/Xsession
+++ b/x2goserver-xsession/etc/Xsession
@@ -73,9 +73,9 @@ ALTUSERXSESSION=$HOME/.Xsession-x2go
 ERRFILE=$HOME/.xsession-x2go-errors
 
 # attempt to create an error file; abort if we cannot
-if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] && [ ! -L "$ERRFILE" ]; then
+if (umask 177 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] && [ ! -L "$ERRFILE" ]; then
 	chmod 600 "$ERRFILE"
-elif ERRFILE=$(mktemp 2> /dev/null); then
+elif ERRFILE=$(umask 077 && mktemp 2> /dev/null); then
 	if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-x2go-$USER"; then
 		message "warning: unable to symlink \"$TMPDIR/xsession-x2go-$USER\" to" \
 		        "\"$ERRFILE\"; look for session log/errors in" \

--
Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list