]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Also adjust unixd.c with changes from r709406
authorJim Jagielski <jim@apache.org>
Fri, 31 Oct 2008 13:37:32 +0000 (13:37 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 31 Oct 2008 13:37:32 +0000 (13:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709407 13f79535-47bb-0310-9956-ffa450edef68

os/unix/unixd.c

index 6f461b8709b9a60c2d3f1e277f9daaa6e6279bde..3e3ba7823eb3f036eb9937e92588309068d8de03 100644 (file)
@@ -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;
             }