diff options
author | venaas <venaas> | 2007-10-08 12:27:26 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-10-08 12:27:26 +0000 |
commit | 8fc8fb12dc9534df6c2bb34b7f2e7349546c396c (patch) | |
tree | 3d3eab1576f19bc9570d7886ca76acd067dc9369 | |
parent | 43d9e426bd3f976715c0f8843db0e686f174b7cd (diff) |
also treat \r as whitespace in configs due to Windows
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@180 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 5f51d10..dd228c7 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2024,7 +2024,7 @@ void getgeneralconfig(FILE *f, char *block, ...) { while (fgets(line, 1024, f)) { s = line; for (tcount = 0; tcount < 3; tcount++) { - s = strtokenquote(s, &tokens[tcount], " \t\n", "\"'", tcount ? NULL : "#"); + s = strtokenquote(s, &tokens[tcount], " \t\r\n", "\"'", tcount ? NULL : "#"); if (!s) debugx(1, DBG_ERR, "Syntax error in line starting with: %s", line); if (!tokens[tcount]) |