]> granicus.if.org Git - apache/commitdiff
geteuid is always successful,
authorTakashi Sato <takashi@apache.org>
Mon, 11 Aug 2014 05:06:50 +0000 (05:06 +0000)
committerTakashi Sato <takashi@apache.org>
Mon, 11 Aug 2014 05:06:50 +0000 (05:06 +0000)
so remove errno reference.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1617201 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/unix/mod_unixd.c

index 10b9b17034808ef580d9140c7693e45caa6c9e5e..bb056c01c0883a3732fab43fec09fcf74d4bbdf9 100644 (file)
@@ -150,8 +150,7 @@ AP_DECLARE(int) ap_unixd_setup_child(void)
 
     if (NULL != ap_unixd_config.chroot_dir) {
         if (geteuid()) {
-            rv = errno;
-            ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL, APLOGNO(02158)
+            ap_log_error(APLOG_MARK, APLOG_ALERT, 0, NULL, APLOGNO(02158)
                          "Cannot chroot when not started as root");
             return rv;
         }