Treat gid's identically to uid's for purposes of numeric formatting.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@816388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2009-09-17 21:35:04 +00:00
parent 5ee4ddf065
commit 96c72f1063

View File

@ -115,8 +115,8 @@ static int set_group_privs(void)
*/ */
if (setgid(ap_unixd_config.group_id) == -1) { if (setgid(ap_unixd_config.group_id) == -1) {
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL, ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
"setgid: unable to set group id to Group %u", "setgid: unable to set group id to Group %ld",
(unsigned)ap_unixd_config.group_id); (long)ap_unixd_config.group_id);
return -1; return -1;
} }
@ -125,7 +125,7 @@ static int set_group_privs(void)
if (initgroups(name, ap_unixd_config.group_id) == -1) { if (initgroups(name, ap_unixd_config.group_id) == -1) {
ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL, ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
"initgroups: unable to set groups for User %s " "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; return -1;
} }
#endif /* !defined(OS2) */ #endif /* !defined(OS2) */