You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2009/09/17 23:35:04 UTC
svn commit: r816388 - /httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
Author: wrowe
Date: Thu Sep 17 21:35:04 2009
New Revision: 816388
URL: http://svn.apache.org/viewvc?rev=816388&view=rev
Log:
Treat gid's identically to uid's for purposes of numeric formatting.
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=816388&r1=816387&r2=816388&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/mod_unixd.c (original)
+++ httpd/httpd/trunk/modules/arch/unix/mod_unixd.c Thu Sep 17 21:35:04 2009
@@ -115,8 +115,8 @@
*/
if (setgid(ap_unixd_config.group_id) == -1) {
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
- "setgid: unable to set group id to Group %u",
- (unsigned)ap_unixd_config.group_id);
+ "setgid: unable to set group id to Group %ld",
+ (long)ap_unixd_config.group_id);
return -1;
}
@@ -125,7 +125,7 @@
if (initgroups(name, ap_unixd_config.group_id) == -1) {
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
"initgroups: unable to set groups for User %s "
- "and Group %u", name, (unsigned)ap_unixd_config.group_id);
+ "and Group %ld", name, (long)ap_unixd_config.group_id);
return -1;
}
#endif /* !defined(OS2) */