From: jbj Date: Mon, 5 Apr 1999 15:23:37 +0000 (+0000) Subject: permit 0x1b in specfile sanity check. X-Git-Tag: rpm-4.4-release~2974 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f98ec6d75d1a5ff6d19782d3e3462f468f409a50;p=platform%2Fupstream%2Frpm.git permit 0x1b in specfile sanity check. CVS patchset: 2945 CVS date: 1999/04/05 15:23:37 --- 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;