CVS update: php31/os/nt

From: Date: Sun, 30 Aug 1998 06:45:27 +0000
Subject: CVS update: php31/os/nt
Groups: php.dev 
Request: Send a blank email to php-dev+get-661@lists.php.net to get a copy of this message
Date: Sunday August 30, 1998 @ 2:45 Author: shane Update of /repository/php31/os/nt In directory asf:/u2/tmp/cvs-serv20306/os/nt Modified Files: config.w32.h pwd.c Log Message: minor fixes. remove pwd.h, it didn't do anything. added file security functions to implement safe mode on NT with NTFS Index: php31/os/nt/config.w32.h diff -c php31/os/nt/config.w32.h:2.2 php31/os/nt/config.w32.h:2.3 *** php31/os/nt/config.w32.h:2.2 Thu Aug 27 16:55:48 1998 --- php31/os/nt/config.w32.h Sun Aug 30 02:45:26 1998 *************** *** 257,263 **** /* #undef HAVE_NDIR_H */ /* Define if you have the <pwd.h> header file. */ ! #define HAVE_PWD_H 1 /* Define if you have the <string.h> header file. */ #define HAVE_STRING_H 1 --- 257,263 ---- /* #undef HAVE_NDIR_H */ /* Define if you have the <pwd.h> header file. */ ! #define HAVE_PWD_H 0 /* Define if you have the <string.h> header file. */ #define HAVE_STRING_H 1 Index: php31/os/nt/pwd.c diff -c php31/os/nt/pwd.c:2.0 php31/os/nt/pwd.c:2.1 *** php31/os/nt/pwd.c:2.0 Fri Jul 3 09:18:49 1998 --- php31/os/nt/pwd.c Sun Aug 30 02:45:26 1998 *************** *** 15,21 **** along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! $Header: /repository/php31/os/nt/pwd.c,v 2.0 1998/07/03 13:18:49 rasmus Exp $ */ /* This 'implementation' is conjectured from the use of this functions in --- 15,21 ---- along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! $Header: /repository/php31/os/nt/pwd.c,v 2.1 1998/08/30 06:45:26 shane Exp $ */ /* This 'implementation' is conjectured from the use of this functions in *************** *** 40,47 **** #ifndef THREAD_SAFE static struct passwd pw; /* should we return a malloc()'d structure */ #endif ! static char *home_dir = "."; /* we feel (no|every)where at home */ ! static char *login_shell = "not command.com!"; struct passwd *getpwnam(char *name) { --- 40,46 ---- #ifndef THREAD_SAFE static struct passwd pw; /* should we return a malloc()'d structure */ #endif ! static char *login_shell = "command.com"; struct passwd *getpwnam(char *name) { *************** *** 63,69 **** TLS_VARS; GLOBAL(pw).pw_name = getlogin(); ! GLOBAL(pw).pw_dir = home_dir; GLOBAL(pw).pw_shell = login_shell; GLOBAL(pw).pw_uid = 0; --- 62,68 ---- TLS_VARS; GLOBAL(pw).pw_name = getlogin(); ! GLOBAL(pw).pw_dir = getenv("HOME"); GLOBAL(pw).pw_shell = login_shell; GLOBAL(pw).pw_uid = 0; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#661) next »