]> git.pld-linux.org Git - packages/squid.git/blob - squid-3.0.PRE3-ncsa_auth_passwdfile.patch
This commit was manufactured by cvs2git to create branch 'DEVEL'.
[packages/squid.git] / squid-3.0.PRE3-ncsa_auth_passwdfile.patch
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'))
This page took 0.032321 seconds and 3 git commands to generate.