[X2go-Commits] x2gobroker.git - master (branch) updated: 71137406a700aa09ead9520e41c4a59ab3807405
X2Go dev team
git-admin at x2go.org
Sun Sep 16 22:27:43 CEST 2012
The branch, master has been updated
via 71137406a700aa09ead9520e41c4a59ab3807405 (commit)
via 9cf0113b91ec37a118c8a5b1aa84d4bc285cc9d5 (commit)
from 6e7de2cf944d0e33436e6831e1b813c83d6f0e8f (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 -----------------------------------------------------------------
commit 71137406a700aa09ead9520e41c4a59ab3807405
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sun Sep 16 22:27:40 2012 +0200
fix perl expression, use -t for executing perl
commit 9cf0113b91ec37a118c8a5b1aa84d4bc285cc9d5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sun Sep 16 22:27:16 2012 +0200
no homedir for x2gobroker user
-----------------------------------------------------------------------
Summary of changes:
debian/x2gobroker-agent.postinst | 2 +-
lib/x2gobroker-agent.pl | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
The diff of changes is:
diff --git a/debian/x2gobroker-agent.postinst b/debian/x2gobroker-agent.postinst
index b811f63..95faece 100755
--- a/debian/x2gobroker-agent.postinst
+++ b/debian/x2gobroker-agent.postinst
@@ -35,7 +35,7 @@ case "$1" in
echo "Creating x2gobroker user." >&2
adduser --system --no-create-home \
--disabled-password --disabled-login \
- --shell /bin/false --group --home /var/lib/x2gobroker x2gobroker
+ --shell /bin/false --group --home /dev/null x2gobroker
else
echo "User x2gobroker already exists." >&2
fi
diff --git a/lib/x2gobroker-agent.pl b/lib/x2gobroker-agent.pl
index aff2258..0e451c1 100755
--- a/lib/x2gobroker-agent.pl
+++ b/lib/x2gobroker-agent.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wU
+#!/usr/bin/perl -wtU
# This file is part of the X2Go Project - http://www.x2go.org
# Copyright (C) 2011-2012 by Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
@@ -26,7 +26,7 @@ sub InitX2GoUser
{
my ($user, $uid, $gid, $home)=@_;
- if ( -f /etc/x2go/x2gosql/sql )
+ if ( -f "/etc/x2go/x2gosql/sql" )
{
# if we use the PostgreSQL session db backend we may have to add the
# user to the session database...
@@ -34,7 +34,7 @@ sub InitX2GoUser
my @buf = <F>;
close(F);
if ( grep (/^backend=sqlite.*/, @buf) ) {
- #if (( ! -e "$home/.x2go/sqlpass" )
+ #if ( ! -e "$home/.x2go/sqlpass" )
###
### FIXME: make the below code robust if homes are on NFS
###
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
More information about the x2go-commits
mailing list