From 1554755e125720220f843f2b9f4e9937d0971781 Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Fri, 17 Aug 2001 11:11:10 +0000 Subject: [PATCH] Make source crunches work as well as object crunches; broken in the last commit that fixed object crunches. Repeat after me, "no excuses for not testing". --- usr.sbin/crunch/crunchgen/crunchgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c index edd752c7bd34..3105883b2a94 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -644,7 +644,7 @@ void fillin_program(prog_t *p) warnx("%s: %s: warning: could not find any .o files", infilename, p->name); - if (!p->objdir || !p->objs) + if ((!p->srcdir || !p->objdir) && !p->objs) p->goterror = 1; }