[PATCH] fix a SIGSEGV of lpr/lpc

Xin LI delphij at frontfree.net
Tue Feb 15 02:34:58 PST 2005


Hi,

Here is a patch that is same as FreeBSD's src/usr.sbin/lpr/lpc/lpc.c,v
1.29.  I believe that the same problem exists in DragonFly, too.

Cheers,
-- 
Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.

Index: lpc.c
===================================================================
RCS file: /home/dcvs/src/usr.sbin/lpr/lpc/lpc.c,v
retrieving revision 1.4
diff -u -r1.4 lpc.c
--- lpc.c	22 Mar 2004 22:32:50 -0000	1.4
+++ lpc.c	15 Feb 2005 10:28:55 -0000
@@ -190,7 +190,7 @@
 		makeargv();
 		if (margc == 0)
 			continue;
-		if (el_parse(el, margc, margv) != -1)
+		if (el != NULL && el_parse(el, margc, margv) != -1)
 			continue;
 
 		c = getcmd(margv[0]);
Attachment:
pgp00006.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00006.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20050215/bc2ec73d/attachment-0013.obj>


More information about the Submit mailing list