[X2go-Commits] x2goserver.git - master (branch) updated: 3.0.99.8-36-ge9cf74e

X2go dev team git-admin at x2go.org
Sat Dec 17 02:52:31 CET 2011


The branch, master has been updated
       via  e9cf74ecc5138a053ecc0bd1e078aa1208c11a3a (commit)
      from  92525697feca404e86cf6bc2155515c37ed43299 (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 e9cf74ecc5138a053ecc0bd1e078aa1208c11a3a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Dec 17 02:52:21 2011 +0100

    Call x2golistmounts with user privileges instead of using db_getmounts in x2goprint script.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                  |    2 ++
 x2goserver-printing/bin/x2goprint |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 9ba170b..3c7785b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ x2goserver (3.0.99.9-0~x2go1) UNRELEASED; urgency=low
     - Re-add x2gosetkeyboard via new subproject x2goserver-pyhoca.
     - Add man page for x2gosessiontitle.
     - Use cmd line parameters when calling x2gosessiontitle.
+    - Call x2golistmounts with user privileges instead of using db_getmounts
+      in x2goprint script.
   * Add psmisc package as dependency.
   * Add new binary package to x2goserver source: x2goserver-pyhoca.
   * x2goserver package suggests x2goserver-pyhoca.
diff --git a/x2goserver-printing/bin/x2goprint b/x2goserver-printing/bin/x2goprint
index fa3e4ae..c225d9e 100755
--- a/x2goserver-printing/bin/x2goprint
+++ b/x2goserver-printing/bin/x2goprint
@@ -100,7 +100,7 @@ chown $uid, $gid, "$spooltmp";
 chmod 0700, "$spooltmp";
 
 # this last part mainly uses the session user's privileges
-my ($mounts)=db_getmounts($session);
+my ($mounts)=`su $user -c "x2golistmounts $session"`;
 if ( $mounts=~m/$spooldir/)
 {
 


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