]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
This brings BeOS back up to date with the recent changes.
authorDavid Reid <dreid@apache.org>
Fri, 22 Oct 1999 11:25:41 +0000 (11:25 +0000)
committerDavid Reid <dreid@apache.org>
Fri, 22 Oct 1999 11:25:41 +0000 (11:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84020 13f79535-47bb-0310-9956-ffa450edef68

os/beos/beosd.c

index 9078e43098b4fe0a31296448cd40869300352377..90ad98b3b5120bb4d936b7a08e2d7bc505f03786 100644 (file)
@@ -131,7 +131,7 @@ static int set_group_privs(void)
            uid_t uid = atoi(&beosd_config.user_name[1]);
 
            if ((ent = getpwuid(uid)) == NULL) {
-               ap_log_error(APLOG_MARK, APLOG_ALERT, NULL,
+               ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
                         "getpwuid: couldn't determine user name from uid %u, "
                         "you probably need to modify the User directive",
                         (unsigned)uid);
@@ -144,7 +144,7 @@ static int set_group_privs(void)
            name = beosd_config.user_name;
 
        if (setgid(beosd_config.group_id) == -1) {
-           ap_log_error(APLOG_MARK, APLOG_ALERT, NULL,
+           ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
                        "setgid: unable to set group id to Group %u",
                        (unsigned)beosd_config.group_id);
            return -1;
@@ -153,7 +153,7 @@ static int set_group_privs(void)
        /* Reset `groups' attributes. */
 
        if (initgroups(name, beosd_config.group_id) == -1) {
-           ap_log_error(APLOG_MARK, APLOG_ALERT, NULL,
+           ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
                        "initgroups: unable to set groups for User %s "
                        "and Group %u", name, (unsigned)beosd_config.group_id);
            return -1;
@@ -172,7 +172,7 @@ int beosd_setup_child(void)
     /* Only try to switch if we're running as root */
     if (!geteuid() && (
        setuid(beosd_config.user_id) == -1)) {
-       ap_log_error(APLOG_MARK, APLOG_ALERT, NULL,
+       ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
                    "setuid: unable to change uid");
        return -1;
     }