coar 98/01/30 06:49:57
Modified: src/support suexec.c
src CHANGES
Log:
Remove pointless references to an as-yet undefined 'cwd' cell.
PR: 1738
Reviewed by: Dean Gaudet
Revision Changes Path
1.34 +2 -2 apache-1.3/src/support/suexec.c
Index: suexec.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/support/suexec.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- suexec.c 1998/01/21 22:27:19 1.33
+++ suexec.c 1998/01/30 14:49:54 1.34
@@ -376,7 +376,7 @@
* and setgid() to the target group. If unsuccessful, error out.
*/
if (((setgid(gid)) != 0) || (initgroups(actual_uname, gid) != 0)) {
- log_err("failed to setgid (%ld: %s/%s)\n", gid, cwd, cmd);
+ log_err("failed to setgid (%ld: %s)\n", gid, cmd);
exit(109);
}
@@ -384,7 +384,7 @@
* setuid() to the target user. Error out on fail.
*/
if ((setuid(uid)) != 0) {
- log_err("failed to setuid (%ld: %s/%s)\n", uid, cwd, cmd);
+ log_err("failed to setuid (%ld: %s)\n", uid, cmd);
exit(110);
}
1.606 +3 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.605
retrieving revision 1.606
diff -u -r1.605 -r1.606
--- CHANGES 1998/01/29 20:38:26 1.605
+++ CHANGES 1998/01/30 14:49:55 1.606
@@ -1,5 +1,8 @@
Changes with Apache 1.3b4
+ *) Variable 'cwd' was being used pointlessly before being set.
+ [Ken Coar] PR#1738
+
*) r->allowed handling cleaned up in the standard modules.
[Dean Gaudet]