httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r709406 - /httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
Date Fri, 31 Oct 2008 13:35:46 GMT
Author: jim
Date: Fri Oct 31 06:35:46 2008
New Revision: 709406

URL: http://svn.apache.org/viewvc?rev=709406&view=rev
Log:
Maintain the assumption that uids are long (as is done
with other code sections), as well as be aware of
signs.

Modified:
    httpd/httpd/trunk/modules/arch/unix/mod_unixd.c

Modified: httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/unix/mod_unixd.c?rev=709406&r1=709405&r2=709406&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/mod_unixd.c (original)
+++ httpd/httpd/trunk/modules/arch/unix/mod_unixd.c Fri Oct 31 06:35:46 2008
@@ -84,13 +84,13 @@
 
         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;
             }
 



Mime
View raw message