From: Takashi Sato Date: Mon, 11 Aug 2014 05:06:50 +0000 (+0000) Subject: geteuid is always successful, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa14874cf62703b11f6df0ec95892c327f642888;p=thirdparty%2Fapache%2Fhttpd.git geteuid is always successful, so remove errno reference. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1617201 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/unix/mod_unixd.c b/modules/arch/unix/mod_unixd.c index 10b9b170348..bb056c01c08 100644 --- a/modules/arch/unix/mod_unixd.c +++ b/modules/arch/unix/mod_unixd.c @@ -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; }