Date: 05/30/98
- Next message: rasmus: "[PHP-DEV] CVS update: php31/ext/oracle"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: zeev: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Saturday May 30, 1998 @ 10:16
Author: rasmus
Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv4446/functions
Modified Files:
exec.c
Log Message:
Oops, that wasn't supposed to get committed
Index: php3/functions/exec.c
diff -c php3/functions/exec.c:1.72 php3/functions/exec.c:1.73
*** php3/functions/exec.c:1.72 Sat May 30 10:14:03 1998
--- php3/functions/exec.c Sat May 30 10:16:01 1998
***************
*** 26,32 ****
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
*/
! /* $Id: exec.c,v 1.72 1998/05/30 14:14:03 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 26,32 ----
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
*/
! /* $Id: exec.c,v 1.73 1998/05/30 14:16:01 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 60,68 ****
char *b, *c, *d=NULL;
TLS_VARS;
! if (GLOBAL(php3_ini).safe_mode) {
lcmd = strlen(cmd);
! ldir = strlen(GLOBAL(php3_ini).safe_mode_exec_dir);
l = lcmd + ldir + 3;
overflow_limit = l;
c = strchr(cmd, ' ');
--- 60,68 ----
char *b, *c, *d=NULL;
TLS_VARS;
! if (php3_ini.safe_mode) {
lcmd = strlen(cmd);
! ldir = strlen(php3_ini.safe_mode_exec_dir);
l = lcmd + ldir + 3;
overflow_limit = l;
c = strchr(cmd, ' ');
***************
*** 73,79 ****
}
b = strrchr(cmd, '/');
d = emalloc(l);
! strncpy(d, GLOBAL(php3_ini).safe_mode_exec_dir, l - 1);
overflow_limit -= ldir;
if (b) {
strncat(d, b, overflow_limit);
--- 73,79 ----
}
b = strrchr(cmd, '/');
d = emalloc(l);
! strncpy(d, php3_ini.safe_mode_exec_dir, l - 1);
overflow_limit -= ldir;
if (b) {
strncat(d, b, overflow_limit);
- Next message: rasmus: "[PHP-DEV] CVS update: php31/ext/oracle"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: zeev: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

