Date: Tue, 11 Aug 1998 22:35:15 -0400 (EDT) From: "Stephen J. Roznowski" <sjr@home.net> To: phk@FreeBSD.ORG, wosch@bento.freebsd.org, phk@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7522 Message-ID: <199808120235.WAA15713@istari.home.net> In-Reply-To: Mail from 'Poul-Henning Kamp <phk@FreeBSD.ORG>' dated: Mon, 10 Aug 1998 00:31:18 -0700 (PDT)
next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: Segmentation fault in BSD find(1)
>
> State-Changed-From-To: open-suspended
> State-Changed-By: phk
> State-Changed-When: Mon Aug 10 00:30:52 PDT 1998
> State-Changed-Why:
> sure enough, does it for me too.
>
> patch & committer sought.
This appears to fix the problem for me:
--- usr.bin/find/operator.c.orig Tue Aug 11 22:33:34 1998
+++ usr.bin/find/operator.c Tue Aug 11 22:32:56 1998
@@ -190,12 +190,12 @@
int notlevel = 1;
node = yanknode(&plan);
+ if (node == NULL)
+ errx(1, "!: no following expression");
while (node->type == N_NOT) {
++notlevel;
node = yanknode(&plan);
}
- if (node == NULL)
- errx(1, "!: no following expression");
if (node->type == N_OR)
errx(1, "!: nothing between ! and -o");
/*
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808120235.WAA15713>
