[X2Go-Commits] [x2goserver] 01/01: x2goserver/lib/x2goistrue: perl strips empty parameters from @ARGV, so work around that gracefully.
git-admin at x2go.org
git-admin at x2go.org
Tue Jan 16 10:47:31 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit de54e90a2f3a177b33186491a1ae005a7c55f557
Author: Mihai Moldovan <ionic at ionic.de>
Date: Tue Jan 16 10:46:55 2018 +0100
x2goserver/lib/x2goistrue: perl strips empty parameters from @ARGV, so work around that gracefully.
---
debian/changelog | 2 ++
x2goserver/lib/x2goistrue | 11 +++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index baea60a..631106c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -233,6 +233,8 @@ x2goserver (4.1.0.0-0x2go1.2) UNRELEASED; urgency=low
- x2goserver/lib/x2gocheckport: fix X2GO_LIB_PATH -> x2go_lib_path typo.
- x2goserver/bin/x2gostartagent: output variable expects a string, not an
integer.
+ - x2goserver/lib/x2goistrue: perl strips empty parameters from @ARGV, so
+ work around that gracefully.
* x2goserver.spec:
- Only create session DB in x2goserver's post install script. Do use
proper Requires(post) statements to make sure perl-X2Go-Server-DB and
diff --git a/x2goserver/lib/x2goistrue b/x2goserver/lib/x2goistrue
index 0c938af..b260fe5 100755
--- a/x2goserver/lib/x2goistrue
+++ b/x2goserver/lib/x2goistrue
@@ -21,8 +21,15 @@ use strict;
use X2Go::Utils qw (is_true);
-my $value = shift or die "Missing value argument";
+my $value = "";
-print is_true($value)."\n";
+if (@ARGV) {
+ $value = shift;
+else {
+ print STDERR "No value passed in, assuming empty string.";
+}
+
+
+print is_true ($value) . "\n";
exit 0;
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list