summaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2008-10-31 14:37:32 +0100
committerJim Jagielski <jim@apache.org>2008-10-31 14:37:32 +0100
commitc63898be915e05f5fb25fc24ac29f3a2faecb199 (patch)
tree3cd30b74df5b6424a44d22fdc12662adf4a962c3 /os
parentMaintain the assumption that uids are long (as is done (diff)
downloadapache2-c63898be915e05f5fb25fc24ac29f3a2faecb199.tar.xz
apache2-c63898be915e05f5fb25fc24ac29f3a2faecb199.zip
Also adjust unixd.c with changes from r709406
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os')
-rw-r--r--os/unix/unixd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/unix/unixd.c b/os/unix/unixd.c
index 6f461b8709..3e3ba7823e 100644
--- a/os/unix/unixd.c
+++ b/os/unix/unixd.c
@@ -68,13 +68,13 @@ static int set_group_privs(void)
if (unixd_config.user_name[0] == '#') {
struct passwd *ent;
- uid_t uid = atoi(&unixd_config.user_name[1]);
+ uid_t uid = atol(&unixd_config.user_name[1]);
if ((ent = getpwuid(uid)) == NULL) {
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
- "getpwuid: couldn't determine user name from uid %u, "
+ "getpwuid: couldn't determine user name from uid %ld, "
"you probably need to modify the User directive",
- (unsigned)uid);
+ (long)uid);
return -1;
}