diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-05-10 10:52:39 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-05-10 10:52:39 +0200 |
commit | 2b517f97c0f67df03cdd21a8f78aa3a13b095e8d (patch) | |
tree | 31f4c82d8990e74905033fae58adc9807d190f50 | |
parent | c4008e43d9d44e950fa16ac45c279303e3e69a96 (diff) | |
download | mblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.tar.gz mblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.tar.xz mblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.zip |
msed: match header names case insensitively
Found by skarnet.
-rw-r--r-- | msed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msed.c b/msed.c index 7bb0b82..c545278 100644 --- a/msed.c +++ b/msed.c @@ -138,7 +138,7 @@ sed(char *file) if (*s == ':') *s = '|'; int rv; - if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED)) != 0) { + if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED | REG_ICASE)) != 0) { char buf[100]; regerror(rv, &headerrx, buf, sizeof buf); fprintf(stderr, "msed: %s\n", buf); |