[X2go-Commits] cups-x2go.git - master (branch) updated: 3.0.0.2-14-g2eac664

X2go dev team git-admin at x2go.org
Tue Aug 30 12:15:15 CEST 2011


The branch, master has been updated
       via  2eac6643e69cb7046a22fd228dbd4a09beeb525d (commit)
      from  c75449e1439bab59f673fd62113466d956aeb60c (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 2eac6643e69cb7046a22fd228dbd4a09beeb525d
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 30 12:16:31 2011 +0200

    Add a proper dpkg-statoverride check in postinst script.

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

Summary of changes:
 debian/changelog          |    1 +
 debian/cups-x2go.postinst |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 26979b1..c860558 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ cups-x2go (3.0.0.2-0~x2go2) UNRELEASED; urgency=low
     on CUPS backend makes CUPS run this backend with root-privileges which
     is needed for cups-x2go to work.
   * Adapt to x2goprint setgid change in x2goserver package (>=3.0.99.6).
+  * Add a proper dpkg-statoverride check in postinst script.
 
   [ Mario Oroz ]
   * Add syslog support for cups-x2go.
diff --git a/debian/cups-x2go.postinst b/debian/cups-x2go.postinst
index 5dcda22..896ddeb 100755
--- a/debian/cups-x2go.postinst
+++ b/debian/cups-x2go.postinst
@@ -21,7 +21,10 @@ set -e
 case "$1" in
     configure)
 
-        dpkg-statoverride --add --update root root 0700 /usr/lib/cups/backend/cups-x2go || true
+        # the x2goprint command can only be run by users that are in group x2goprint
+        if ! dpkg-statoverride --list /usr/lib/cups/backend/cups-x2go >/dev/null; then
+            dpkg-statoverride --add --update root root 0700 /usr/lib/cups/backend/cups-x2go
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)


hooks/post-receive
-- 
cups-x2go.git (CUPS Backend for X2go Printing)

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 "cups-x2go.git" (CUPS Backend for X2go Printing).




More information about the x2go-commits mailing list