[Pkg-cups-devel] r860 - in cupsys/trunk: . debian debian/patches

Martin Pitt mpitt at alioth.debian.org
Sat Sep 6 16:30:16 UTC 2008


Author: mpitt
Date: Sat Sep  6 16:30:16 2008
New Revision: 860

Log:
Add rootbackends-worldreadable.dpatch: Install root backends
world-readable, to comply to Debian Policy and because it is both
nonsensical to to not do so, and also breaks system checkers, bug
reporting, etc. (Closes: #410171)

Added:
   cupsys/trunk/debian/patches/rootbackends-worldreadable.dpatch   (contents, props changed)
Modified:
   cupsys/trunk/   (props changed)
   cupsys/trunk/debian/changelog
   cupsys/trunk/debian/patches/00list

Modified: cupsys/trunk/debian/changelog
==============================================================================
--- cupsys/trunk/debian/changelog	(original)
+++ cupsys/trunk/debian/changelog	Sat Sep  6 16:30:16 2008
@@ -23,8 +23,12 @@
     rewrite it to be upstream compatible, split it out to
     dont-chown-symlinked-ssl.dpatch, reported it upstream.
   * Remove device_uri.dpatch, does not seem to be necessary any more.
+  * Add rootbackends-worldreadable.dpatch: Install root backends
+    world-readable, to comply to Debian Policy and because it is both
+    nonsensical to to not do so, and also breaks system checkers, bug
+    reporting, etc. (Closes: #410171)
 
- -- Martin Pitt <mpitt at debian.org>  Sat, 06 Sep 2008 15:47:20 +0200
+ -- Martin Pitt <mpitt at debian.org>  Sat, 06 Sep 2008 18:21:01 +0200
 
 cups (1.3.8-7) experimental; urgency=low
 

Modified: cupsys/trunk/debian/patches/00list
==============================================================================
--- cupsys/trunk/debian/patches/00list	(original)
+++ cupsys/trunk/debian/patches/00list	Sat Sep  6 16:30:16 2008
@@ -18,6 +18,7 @@
 quiesce-bonjour-warning.dpatch
 cupsaccept.dpatch
 dont-chown-symlinked-ssl.dpatch
+rootbackends-worldreadable.dpatch
 
 # patches which should go upstream
 reactivate_recommended_driver.dpatch

Added: cupsys/trunk/debian/patches/rootbackends-worldreadable.dpatch
==============================================================================
--- (empty file)
+++ cupsys/trunk/debian/patches/rootbackends-worldreadable.dpatch	Sat Sep  6 16:30:16 2008
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## rootbackends-worldreadable.dpatch by  <mpitt at debian.org>
+##
+## DP: Install root backends world-readable, to comply to Debian Policy and
+## DP: because it is both nonsensical to to not do so, and also breaks system
+## DP: checkers, bug reporting, etc.
+## DP: (http://bugs.debian.org/410171, http://www.cups.org/str.php?L2935)
+
+ at DPATCH@
+diff -urNad trunk~/backend/Makefile trunk/backend/Makefile
+--- trunk~/backend/Makefile	2007-08-08 21:27:51.000000000 +0200
++++ trunk/backend/Makefile	2008-09-06 18:17:10.000000000 +0200
+@@ -55,7 +55,7 @@
+ install:	all
+ 	$(INSTALL_DIR) -m 755 $(SERVERBIN)/backend
+ 	for file in $(RBACKENDS); do \
+-		$(LIBTOOL) $(INSTALL) -m 700 $$file $(SERVERBIN)/backend; \
++		$(LIBTOOL) $(INSTALL) -m 744 $$file $(SERVERBIN)/backend; \
+ 	done
+ 	for file in $(UBACKENDS); do \
+ 		$(INSTALL_BIN) $$file $(SERVERBIN)/backend; \
+diff -urNad trunk~/scheduler/job.c trunk/scheduler/job.c
+--- trunk~/scheduler/job.c	2008-07-21 21:57:20.000000000 +0200
++++ trunk/scheduler/job.c	2008-09-06 18:17:48.000000000 +0200
+@@ -3406,7 +3406,7 @@
+       else if (stat(command, &backinfo))
+ 	backroot = 0;
+       else
+-        backroot = !(backinfo.st_mode & (S_IRWXG | S_IRWXO));
++        backroot = !(backinfo.st_mode & (S_IXGRP | S_IXOTH));
+ 
+       argv[0] = sani_uri;
+ 



More information about the Pkg-cups-devel mailing list