[Pkg-openssl-devel] Bug#520021: patch

Clint Adams schizo at debian.org
Fri Jul 24 14:15:40 UTC 2009


Again, the second hunk does not address the bug, but forking for ls and head
would seem to be completely unnecessary.

--- debian/libssl0.9.8.postinst.orig	2009-07-24 09:13:36.000000000 -0500
+++ debian/libssl0.9.8.postinst	2009-07-24 09:14:15.000000000 -0500
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 . /usr/share/debconf/confmodule
 
@@ -96,7 +96,7 @@
 	    echo "Checking init scripts..."
 	    for service in $check; do
 		if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-		   idl=$(ls /etc/init.d/${service} 2> /dev/null | head -n 1)
+		   idl="/etc/init.d/${service}"
 		   if [ -n "$idl" ] && [ -x $idl ]; then
 			services="$service $services"
 		   else





More information about the Pkg-openssl-devel mailing list