[PATCH] Fix command check when built --without-start-stop-daemon
Hi,
WITH_START_STOP_DAEMON is defined as 0 if dpkg is configured
--without-start-stop-daemon, but in help.c the macro is checked with
ifdef, causing dpkg to bail out if start-stop-daemon isn't found in the
PATH.
Index: src/help.c
===================================================================
--- src/help.c (revision 589)
+++ src/help.c (working copy)
@@ -70,7 +70,7 @@
void checkpath(void) {
/* Verify that some programs can be found in the PATH. */
static const char *const checklist[]= { "ldconfig",
-#ifdef WITH_START_STOP_DAEMON
+#if WITH_START_STOP_DAEMON
"start-stop-daemon",
#endif
"install-info", "update-rc.d", 0
Reply to: