[Pkg-sysvinit-commits] r1463 - in sysvinit/trunk/debian: . patches

Petter Reinholdtsen pere at alioth.debian.org
Tue Jul 14 20:12:52 UTC 2009


Author: pere
Date: 2009-07-14 20:12:50 +0000 (Tue, 14 Jul 2009)
New Revision: 1463

Added:
   sysvinit/trunk/debian/patches/54_bootlogd_findptyfail.dpatch
Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/patches/00list
Log:
New patch 54_bootlogd_findptyfail making sure bootlogd findpty()
returns an error value  when it fails to find a usable pty
(Closes: #492796).  Patch from Rob Leslie.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-07-14 19:51:16 UTC (rev 1462)
+++ sysvinit/trunk/debian/changelog	2009-07-14 20:12:50 UTC (rev 1463)
@@ -9,6 +9,9 @@
   * Clean up control file, dropping replaces and conflicts on sysvinit
     packages before oldstable: sysvinit (<< 2.85-1),
     sysv-rc (<< 2.86.ds1-1.2) and sysvinit (<< 2.86.ds1-12).
+  * New patch 54_bootlogd_findptyfail making sure bootlogd findpty()
+    returns an error value  when it fails to find a usable pty
+    (Closes: #492796).  Patch from Rob Leslie.
   * New patch 96_shutdown_acctoff making sure to call accton with the
     argument off during shutdown to stop accounting (Closes: #536574).
 

Modified: sysvinit/trunk/debian/patches/00list
===================================================================
--- sysvinit/trunk/debian/patches/00list	2009-07-14 19:51:16 UTC (rev 1462)
+++ sysvinit/trunk/debian/patches/00list	2009-07-14 20:12:50 UTC (rev 1463)
@@ -24,6 +24,7 @@
 51_bootlogd_syncalot
 52_bootlogd_createlogfile
 53_bootlogd_ttyB
+54_bootlogd_findptyfail
 60_init_race
 61_init_msg
 62_init_freebsdterm

Added: sysvinit/trunk/debian/patches/54_bootlogd_findptyfail.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/54_bootlogd_findptyfail.dpatch	                        (rev 0)
+++ sysvinit/trunk/debian/patches/54_bootlogd_findptyfail.dpatch	2009-07-14 20:12:50 UTC (rev 1463)
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 54_bootlogd_findptyfail.dpatch by Rob Leslie.
+
+Making sure bootlogd findpty() returns an error value when it
+fails to find a usable pty
+
+BTS: #492796
+
+ at DPATCH@
+diff -urNad trunk~/src/bootlogd.c trunk/src/bootlogd.c
+--- trunk~/src/bootlogd.c	2009-07-14 22:07:15.000000000 +0200
++++ trunk/src/bootlogd.c	2009-07-14 22:08:24.000000000 +0200
+@@ -167,7 +167,7 @@
+ 		}
+ 		if (found) break;
+ 	}
+-	if (found < 0) return -1;
++	if (!found) return -1;
+ 
+ 	if (name) strcpy(name, tty);
+ 


Property changes on: sysvinit/trunk/debian/patches/54_bootlogd_findptyfail.dpatch
___________________________________________________________________
Added: svn:executable
   + *




More information about the Pkg-sysvinit-commits mailing list