From: Adam Heath Date: Sat, 2 Mar 2002 05:31:18 +0000 (+0000) Subject: Fix segfault with getenv("PATH") returns null. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c60a2397e9607b216ca2de55edf7391cf3dc03;p=dpkg Fix segfault with getenv("PATH") returns null. --- diff --git a/ChangeLog b/ChangeLog index 6aa1146b..66167a04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 1 23:27:16 CST 2002 Adam Heath + + * main/help.c, debian/changelog: Fix segfault with getenv("PATH") returns + null. + Fri Mar 1 23:22:55 CST 2002 Adam Heath * configure.in: Remove old doc/*/Makefile. Bad Wichert. diff --git a/debian/changelog b/debian/changelog index a2234eac..c9ef898f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -84,6 +84,7 @@ dpkg (1.10) unstable; urgency=low * Improve wording of update-alternatives --config text. Closes: Bug#133035 * Add manpages for dpkg.cfg and dselect.cfg. Closes: Bug#132901 * Improve test for illegal packagename for dpkg-gencontrol -p option + * Fix segfault when getenv("PATH") returns null. Closes: Bug#136349 -- Wichert Akkerman Mon, 20 Aug 2001 14:54:38 +0200 diff --git a/main/help.c b/main/help.c index 379f1c7b..84257599 100644 --- a/main/help.c +++ b/main/help.c @@ -84,7 +84,7 @@ void checkpath(void) { long l; path= getenv("PATH"); - if (!path) fputs(_("dpkg - warning: PATH is not set.\n"), stderr); + if (!path) ohshit(_("dpkg - error: PATH is not set.\n")); buf=(char*)m_malloc(strlen(path)+2+strlen("start-stop-daemon")); for (clp=checklist; *clp; clp++) {