]>
Commit | Line | Data |
---|---|---|
36aa8c36 JR |
1 | Index: squid3/helpers/basic_auth/NCSA/ncsa_auth.c |
2 | diff -c squid3/helpers/basic_auth/NCSA/ncsa_auth.c:1.4 squid3/helpers/basic_auth/NCSA/ncsa_auth.c:1.5 | |
3 | *** squid3/helpers/basic_auth/NCSA/ncsa_auth.c:1.4 Wed May 28 16:42:32 2003 | |
4 | --- squid3/helpers/basic_auth/NCSA/ncsa_auth.c Wed Aug 20 06:59:24 2003 | |
5 | *************** | |
6 | *** 81,86 **** | |
7 | --- 81,90 ---- | |
8 | exit(1); | |
9 | } | |
10 | f = fopen(passwdfile, "r"); | |
11 | + if (NULL == f) { | |
12 | + fprintf(stderr, "%s: %s\n", passwdfile, xstrerror()); | |
13 | + exit(1); | |
14 | + } | |
15 | while (fgets(buf, 8192, f) != NULL) { | |
16 | if ((buf[0] == '#') || (buf[0] == ' ') || (buf[0] == '\t') || | |
17 | (buf[0] == '\n')) |