You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@hyperreal.org on 1998/01/30 15:45:46 UTC
cvs commit: apache-1.2/src CHANGES
coar 98/01/30 06:45:46
Modified: 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.24 +2 -2 apache-1.2/support/suexec.c
Index: suexec.c
===================================================================
RCS file: /export/home/cvs/apache-1.2/support/suexec.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- suexec.c 1998/01/30 09:14:31 1.23
+++ suexec.c 1998/01/30 14:45:44 1.24
@@ -357,7 +357,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);
}
@@ -365,7 +365,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.288 +3 -0 apache-1.2/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apache-1.2/src/CHANGES,v
retrieving revision 1.287
retrieving revision 1.288
diff -u -r1.287 -r1.288
--- CHANGES 1998/01/30 09:13:43 1.287
+++ CHANGES 1998/01/30 14:45:45 1.288
@@ -1,5 +1,8 @@
Changes with Apache 1.2.6
+ *) Variable 'cwd' was being used pointlessly before being set.
+ [Ken Coar] PR#1738
+
*) SIGURG doesn't exist on all platforms.
[Mark Andrew Heinrich <he...@tinderbox.Stanford.EDU>]