summaryrefslogtreecommitdiff
path: root/cups/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'cups/auth.c')
-rw-r--r--cups/auth.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cups/auth.c b/cups/auth.c
index 740b07989..175c53892 100644
--- a/cups/auth.c
+++ b/cups/auth.c
@@ -1121,10 +1121,6 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */
if (cups_auth_find(www_auth, "Negotiate"))
return (1);
# endif /* HAVE_GSSAPI */
-# ifdef HAVE_AUTHORIZATION_H
- if (cups_auth_find(www_auth, "AuthRef"))
- return (1);
-# endif /* HAVE_AUTHORIZATION_H */
# if defined(SO_PEERCRED) && defined(AF_LOCAL)
/*
@@ -1174,7 +1170,7 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */
* No certificate for this PID; see if we can get the root certificate...
*/
- DEBUG_printf(("9cups_local_auth: Unable to open file %s: %s", filename, strerror(errno)));
+ DEBUG_printf(("9cups_local_auth: Unable to open file \"%s\": %s", filename, strerror(errno)));
if (!cups_auth_param(schemedata, "trc", trc, sizeof(trc)))
{
@@ -1186,7 +1182,8 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */
}
snprintf(filename, sizeof(filename), "%s/certs/0", cg->cups_statedir);
- fp = fopen(filename, "r");
+ if ((fp = fopen(filename, "r")) == NULL)
+ DEBUG_printf(("9cups_local_auth: Unable to open file \"%s\": %s", filename, strerror(errno)));
}
if (fp)