The branch, build-main has been updated via bf44925ecccda436caa1cfc34f89eced9c1bd104 (commit) from b465d13a416d97614b3b4ac9fd1faf1c034a840c (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 bf44925ecccda436caa1cfc34f89eced9c1bd104 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Dec 29 22:34:34 2013 +0100 Avoid backticks in x2goshowblocks, move script to <prefix>/sbin/ as it is for being run with root privileges. ----------------------------------------------------------------------- Summary of changes: debian/changelog | 2 ++ x2goserver/{bin => sbin}/x2goshowblocks | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) rename x2goserver/{bin => sbin}/x2goshowblocks (90%) The diff of changes is: diff --git a/debian/changelog b/debian/changelog index 2776c32..db634e2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -175,6 +175,8 @@ x2goserver (4.0.0.8-0x2go1) UNRELEASED; urgency=low x2golistsessions_root. - Avoid one argument system calls and backticks in x2golistsessions. - Avoid one argument system calls and backticks in x2goprint. + - Avoid backticks in x2goshowblocks, move script to <prefix>/sbin/ as it is + for being run with root privileges. -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Thu, 28 Nov 2013 16:14:32 +0100 diff --git a/x2goserver/bin/x2goshowblocks b/x2goserver/sbin/x2goshowblocks similarity index 90% rename from x2goserver/bin/x2goshowblocks rename to x2goserver/sbin/x2goshowblocks index 46dd6d0..8cecaad 100755 --- a/x2goserver/bin/x2goshowblocks +++ b/x2goserver/sbin/x2goshowblocks @@ -26,6 +26,7 @@ use Sys::Syslog qw( :standard :macros ); use lib `x2gopath lib`; use x2godbwrapper; use x2gologlevel; +use x2goutils; openlog($0,'cons,pid','user'); setlogmask( LOG_UPTO(x2gologlevel()) ); @@ -40,8 +41,8 @@ my @outp=dbsys_getmounts( $id); for (my $i=0;$i<@outp;$i++) { my $path=(split("\\|",@outp[$i]))[1]; - print `su $uname -c "lsof 2>/dev/null | grep $path"`; + print x2goutils::system_capture_merged_output("su", "$uname", "-c", "lsof | grep \"$path\""); } -# closing syslog -closelog; \ No newline at end of file +# closing syslog +closelog; 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).