]> git.pld-linux.org Git - packages/squid.git/blame - squid-3.0.PRE3-ncsa_auth_passwdfile.patch
- more patches:
[packages/squid.git] / squid-3.0.PRE3-ncsa_auth_passwdfile.patch
CommitLineData
36aa8c36
JR
1Index: squid3/helpers/basic_auth/NCSA/ncsa_auth.c
2diff -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'))
This page took 0.555374 seconds and 4 git commands to generate.