[X2Go-Commits] x2goserver.git - build-baikal (branch) updated: 4.0.0.7-2-gcb5fd26

X2Go dev team git-admin at x2go.org
Wed Dec 4 06:13:08 CET 2013


The branch, build-baikal has been updated
       via  cb5fd26dadd864dde1887dbecd6dd6293f086fb3 (commit)
      from  260e74e2d123641dc09ac9e4c481c9bacc254f57 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                 |    3 ++-
 x2goserver-xsession/etc/Xsession |    6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 64ff601..55d5a60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 x2goserver (4.0.0.8-0x2go1) UNRELEASED; urgency=low
 
-  * Continue development for LTS Baikal branch of X2Go Server...
+  * Use mktemp instead of tempfile (because Fedora does not have the tempfile
+    binary). (Fixes: #347).
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Thu, 28 Nov 2013 16:14:32 +0100
 
diff --git a/x2goserver-xsession/etc/Xsession b/x2goserver-xsession/etc/Xsession
index 94c841e..47ec40e 100755
--- a/x2goserver-xsession/etc/Xsession
+++ b/x2goserver-xsession/etc/Xsession
@@ -74,7 +74,7 @@ ERRFILE=$HOME/.xsession-x2go-errors
 if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
   [ ! -L "$ERRFILE" ]; then
   chmod 600 "$ERRFILE"
-elif ERRFILE=$(tempfile 2> /dev/null); then
+elif ERRFILE=$(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" \
@@ -96,9 +96,9 @@ fi
 # Attempt to create a file of non-zero length in /tmp; a full filesystem can
 # cause mysterious X session failures.  We do not use touch, :, or test -w
 # because they won't actually create a file with contents.  We also let standard
-# error from tempfile and echo go to the error file to aid the user in
+# error from mktemp and echo go to the error file to aid the user in
 # determining what went wrong.
-WRITE_TEST=$(tempfile)
+WRITE_TEST=$(mktemp)
 if ! echo "*" >>"$WRITE_TEST"; then
   message "warning: unable to write to ${WRITE_TEST%/*}; X session (X2Go) may" \
           "exit with an error"


hooks/post-receive
-- 
x2goserver.git (X2Go Server)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2goserver.git" (X2Go Server).




More information about the x2go-commits mailing list