/[Apache-SVN]/httpd/httpd/trunk/modules/arch/unix/mod_privileges.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/arch/unix/mod_privileges.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- httpd/httpd/trunk/modules/arch/unix/mod_privileges.c	2009/01/04 13:11:04	731251
+++ httpd/httpd/trunk/modules/arch/unix/mod_privileges.c	2009/01/28 16:23:11	738526
@@ -121,7 +121,7 @@
     /* restore default privileges */
     if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_default) == -1) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                      "Error restoring default privileges: %s");
+                      "Error restoring default privileges: %s", strerror(errno));
     }
     return APR_SUCCESS;
 }
@@ -157,19 +157,19 @@
     /* set vhost's privileges */
     if (setppriv(PRIV_SET, PRIV_EFFECTIVE, cfg->priv) == -1) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                      "Error setting effective privileges: %s");
+                      "Error setting effective privileges: %s", strerror(errno));
         return HTTP_INTERNAL_SERVER_ERROR;
     }
 
     /* ... including those of any subprocesses */
     if (setppriv(PRIV_SET, PRIV_INHERITABLE, cfg->child_priv) == -1) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                      "Error setting inheritable privileges: %s");
+                      "Error setting inheritable privileges: %s", strerror(errno));
         return HTTP_INTERNAL_SERVER_ERROR;
     }
     if (setppriv(PRIV_SET, PRIV_LIMIT, cfg->child_priv) == -1) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                      "Error setting limit privileges: %s");
+                      "Error setting limit privileges: %s", strerror(errno));
         return HTTP_INTERNAL_SERVER_ERROR;
     }
 
@@ -253,7 +253,7 @@
     priv_emptyset(priv_setid);
     if (priv_addset(priv_setid, PRIV_PROC_SETID) == -1) {
         ap_log_perror(APLOG_MARK, APLOG_CRIT, 0, ptemp,
-                      "priv_addset: ", strerror(errno));
+                      "priv_addset: %s", strerror(errno));
         return !OK;
     }
     return OK;

 

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2