diff options
author | Tim Kientzle <kientzle@gmail.com> | 2016-07-20 20:27:45 -0700 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2016-07-20 20:27:45 -0700 |
commit | daf8a7bb5469cd1454f9bdadf6d6e552cf850efa (patch) | |
tree | 5d71643d81d16fc44b0005b7987c5099e90e0c9f | |
parent | 5dc627262f9e63aa250a9c8fed1aeafee8a1c6cc (diff) | |
download | libarchive-daf8a7bb5469cd1454f9bdadf6d6e552cf850efa.tar.gz |
Issue 720: Allow dashes in third-party version numbers
-rw-r--r-- | cat/test/test_version.c | 2 | ||||
-rw-r--r-- | cpio/test/test_option_version.c | 2 | ||||
-rw-r--r-- | tar/test/test_version.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cat/test/test_version.c b/cat/test/test_version.c index e7c93630..e587b344 100644 --- a/cat/test/test_version.c +++ b/cat/test/test_version.c @@ -83,7 +83,7 @@ DEFINE_TEST(test_version) if (*q == 'a' || *q == 'b' || *q == 'c' || *q == 'd') ++q; /* Skip arbitrary third-party version numbers. */ - while (s > 0 && (*q == ' ' || *q == '/' || *q == '.' || isalnum(*q))) { + while (s > 0 && (*q == ' ' || *q == '-' || *q == '/' || *q == '.' || isalnum(*q))) { ++q; --s; } diff --git a/cpio/test/test_option_version.c b/cpio/test/test_option_version.c index 32ba3000..ac58cefd 100644 --- a/cpio/test/test_option_version.c +++ b/cpio/test/test_option_version.c @@ -75,7 +75,7 @@ verify(const char *p, size_t s) if (*q == 'a' || *q == 'b' || *q == 'c' || *q == 'd') ++q; /* Skip arbitrary third-party version numbers. */ - while (s > 0 && (*q == ' ' || *q == '/' || *q == '.' || isalnum(*q))) { + while (s > 0 && (*q == ' ' || *q == '-' || *q == '/' || *q == '.' || isalnum(*q))) { ++q; --s; } diff --git a/tar/test/test_version.c b/tar/test/test_version.c index 5474261d..04d9e6c7 100644 --- a/tar/test/test_version.c +++ b/tar/test/test_version.c @@ -88,7 +88,7 @@ DEFINE_TEST(test_version) if (*q == 'a' || *q == 'b' || *q == 'c' || *q == 'd') ++q; /* Skip arbitrary third-party version numbers. */ - while (s > 0 && (*q == ' ' || *q == '/' || *q == '.' || isalnum(*q))) { + while (s > 0 && (*q == ' ' || *q == '-' || *q == '/' || *q == '.' || isalnum(*q))) { ++q; --s; } |