Created
June 10, 2016 14:13
-
-
Save alexh-name/d6e5da485a7fd9d3e3c47852fbd7bb83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alex H. 20160610 | |
https://keybase.io/alexh_name | |
VMailMgr's checkvpw fails to build on systems with glibc-2.10+. | |
strcasestr() in checkvpw.cc also exists in glibc. Before glibc-2.10, | |
they were declared identical, so it still built. glibc-2.10 started | |
to declare it as "const char *" instead of "char *" though, so the | |
build fails. This patch simply removes strcasestr: | |
--- authenticate/checkvpw.cc.orig 2016-06-10 15:33:10.787006484 +0200 | |
+++ authenticate/checkvpw.cc 2016-06-10 15:50:06.536002778 +0200 | |
@@ -105,15 +105,6 @@ | |
return new auth_data(name, pass, stamp); | |
} | |
-char* strcasestr(const char* haystack, const char* needle) | |
-{ | |
- for(size_t hlength = strlen(haystack), nlength = strlen(needle); | |
- hlength >= nlength; hlength--, haystack++) | |
- if(!strncasecmp(haystack, needle, nlength)) | |
- return (char*)haystack; | |
- return 0; | |
-} | |
- | |
unsigned find_maildir(int argc, const char* args[]) | |
{ | |
for(int arg = 0; arg < argc; arg++) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment