Skip to content

Commit 07ad1d1

Browse files
Takashi Satonotroj
authored andcommitted
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 (cherry picked from commit cd50376)
1 parent 85be139 commit 07ad1d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/arch/unix/mod_unixd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ AP_DECLARE(int) ap_unixd_setup_child(void)
150150

151151
if (NULL != ap_unixd_config.chroot_dir) {
152152
if (geteuid()) {
153-
rv = errno;
154-
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL, APLOGNO(02158)
153+
ap_log_error(APLOG_MARK, APLOG_ALERT, 0, NULL, APLOGNO(02158)
155154
"Cannot chroot when not started as root");
156155
return rv;
157156
}

0 commit comments

Comments
 (0)