Mailing List Archive

cvs commit: apache-1.3/src/os/bs2000 bs2login.c
martin 98/05/04 15:18:24

Modified: src/os/bs2000 bs2login.c
Log:
Use new error-propagating APEXIT_CHILDFATAL exit code

Revision Changes Path
1.2 +6 -6 apache-1.3/src/os/bs2000/bs2login.c

Index: bs2login.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/os/bs2000/bs2login.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -u -r1.1 -r1.2
--- bs2login.c 1998/05/04 16:22:12 1.1
+++ bs2login.c 1998/05/04 22:18:24 1.2
@@ -76,7 +76,7 @@
if (stat(filename, &stbuf) != 0) {
return ap_pstrcat(p, "Unable to access bs2000 auth file ",
filename, NULL);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

/* auth file must be owned by root, and not readable/writable by everyone else */
@@ -126,14 +126,14 @@
"Use the 'BS2000AuthFile <passwdfile>' directive to specify "
"an authorization file for User %s",
user_name);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

if ((pwfile = fopen(bs2000_authfile, "r")) == NULL) {
ap_log_error(APLOG_MARK, APLOG_ALERT, server,
"Unable to open bs2000 auth file %s for User %s",
bs2000_authfile, user_name);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

if (fgets(lcl_data.password, sizeof lcl_data.password, pwfile) == NULL
@@ -141,7 +141,7 @@
ap_log_error(APLOG_MARK, APLOG_ALERT|APLOG_NOERRNO, server,
"Unable ro read BS2000 auth file %s",
bs2000_authfile);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

fclose(pwfile);
@@ -156,7 +156,7 @@
if(_checkuser(&chk_usr) != 0) {
ap_log_error(APLOG_MARK, APLOG_ALERT, server,
"_checkuser: BS2000 auth failed for user %s", chk_usr.username);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

inittask.username = chk_usr.username;
@@ -170,7 +170,7 @@
ap_log_error(APLOG_MARK, APLOG_ALERT, server,
"_rini: BS2000 auth failed for user %s",
inittask.username);
- exit(1);
+ exit(APEXIT_CHILDFATAL);
}

/*ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, server,