From f98ec6d75d1a5ff6d19782d3e3462f468f409a50 Mon Sep 17 00:00:00 2001 From: jbj Date: Mon, 5 Apr 1999 15:23:37 +0000 Subject: [PATCH] permit 0x1b in specfile sanity check. CVS patchset: 2945 CVS date: 1999/04/05 15:23:37 --- CHANGES | 1 + build.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index c30510d..87021ed 100644 --- a/CHANGES +++ b/CHANGES @@ -97,6 +97,7 @@ - there must be a { between two % in a query format (unless %% is used) 2.5.6 -> 2.5.7: + - permit 0x1b in specfile sanity check. - increase timeout in tread from 5 to 30 secs for slow links. - rename file before unlinking to avoid EBUSY failures. - headerGetEntry now returns count=0 if tag not found (Chris Blizzard). diff --git a/build.c b/build.c index 516cb19..1811c4d 100644 --- a/build.c +++ b/build.c @@ -132,7 +132,7 @@ static int buildForTarget(const char *arg, int buildAmount, const char *passPhra close(fd); s = buf; while(count--) { - if (! (isprint(*s) || isspace(*s))) { + if (! (isprint(*s) || isspace(*s) || (*s == 0x1b))) { fprintf(stderr, _("File contains non-printable characters(%c): %s\n"), *s, specfile); return 1; -- 2.7.4