summaryrefslogtreecommitdiff
path: root/misc/jitterbug/patches/patch-ae
blob: b3554e7444b1d12cef6e9e0fea9f3967861458c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ae,v 1.1 2004/02/09 09:17:50 wennmach Exp $

Security patch (from Debian GNU/Linux).
See http://www.debian.org/security/2004/dsa-420

--- util.c.orig	Thu Aug 20 03:22:45 1998
+++ util.c	Wed Jan 14 17:34:04 2004
@@ -371,6 +371,10 @@
 	extern int done_chroot;
 
 	p = lp_chroot_directory();
+	if (!lp_base_directory()) {
+		fprintf(stderr, "No base directory: cannot continue\n");
+		exit(1);
+	}
 
 	if (done_chroot || !p || !*p) {
 		check_overflow(strlen(lp_base_directory())+10, sizeof(buf));