permit 0x1b in specfile sanity check.
authorjbj <devnull@localhost>
Mon, 5 Apr 1999 15:23:37 +0000 (15:23 +0000)
committerjbj <devnull@localhost>
Mon, 5 Apr 1999 15:23:37 +0000 (15:23 +0000)
CVS patchset: 2945
CVS date: 1999/04/05 15:23:37

CHANGES
build.c

diff --git a/CHANGES b/CHANGES
index c30510d..87021ed 100644 (file)
--- 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 (file)
--- 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;