[Python-apps-commits] r13218 - in packages/rubber/trunk/debian (3 files)

hilmar-guest at users.alioth.debian.org hilmar-guest at users.alioth.debian.org
Fri May 13 12:24:42 UTC 2016


    Date: Friday, May 13, 2016 @ 12:24:40
  Author: hilmar-guest
Revision: 13218

Add patch for LP: #1543622

Added:
  packages/rubber/trunk/debian/patches/04_r+for_dev_null.diff
Modified:
  packages/rubber/trunk/debian/changelog
  packages/rubber/trunk/debian/patches/series

Modified: packages/rubber/trunk/debian/changelog
===================================================================
--- packages/rubber/trunk/debian/changelog	2016-05-13 07:34:40 UTC (rev 13217)
+++ packages/rubber/trunk/debian/changelog	2016-05-13 12:24:40 UTC (rev 13218)
@@ -2,6 +2,8 @@
 
   * Remove Suggestion of sam2p (Closes: #824118) and any other
     references to it (rules.ini).
+  * 04_r+for_dev_null.diff: Fix open mode of /dev/null (r+ instead
+    of rw) (LP: #1543622)
 
  -- Hilmar Preuße <hille42 at web.de>  Thu, 12 May 2016 16:19:22 +0200
 

Added: packages/rubber/trunk/debian/patches/04_r+for_dev_null.diff
===================================================================
--- packages/rubber/trunk/debian/patches/04_r+for_dev_null.diff	                        (rev 0)
+++ packages/rubber/trunk/debian/patches/04_r+for_dev_null.diff	2016-05-13 12:24:40 UTC (rev 13218)
@@ -0,0 +1,22 @@
+From 428807ccb78fcc8c7dbcdf4233848ad31d63b2f1 Mon Sep 17 00:00:00 2001
+From: Sebastian Kapfer <sebastian.kapfer at fau.de>
+Date: Wed, 10 Feb 2016 01:44:52 +0100
+Subject: use open mode r+ for /dev/null instead of rw
+
+
+diff --git a/src/util.py b/src/util.py
+index 295a261..ef332d5 100644
+--- a/src/util.py
++++ b/src/util.py
+@@ -409,7 +409,7 @@ devnull_fp = None
+ def devnull ():
+ 	global devnull_fp
+ 	if not devnull_fp:
+-		devnull_fp = open(os.devnull, 'rw')
++		devnull_fp = open(os.devnull, 'r+')
+ 	return devnull_fp
+ 
+ def explode_path (name = "PATH"):
+-- 
+cgit v0.10.2
+

Modified: packages/rubber/trunk/debian/patches/series
===================================================================
--- packages/rubber/trunk/debian/patches/series	2016-05-13 07:34:40 UTC (rev 13217)
+++ packages/rubber/trunk/debian/patches/series	2016-05-13 12:24:40 UTC (rev 13218)
@@ -1,3 +1,4 @@
 01_accurate_log.diff
 02_bibtex_stacktrace.diff
 03_no_sam2p.diff
+04_r+for_dev_null.diff
\ No newline at end of file




More information about the Python-apps-commits mailing list