Skip to content

Commit d77acff

Browse files
author
Anantha Kesari H Y
committed
main/fopen_wrappers.c
NetWare file names are case insensitive main/main.c NetWare has no sendmail binary. It uses the smart host mailing code avaiolable in php distro. Could not find a better place to put this than main/main.c. -- Kamesh
1 parent 032d096 commit d77acff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/fopen_wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
123123
}
124124

125125
/* Check the path */
126-
#ifdef PHP_WIN32
126+
#if defined(PHP_WIN32) || defined(NETWARE)
127127
if (strncasecmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
128128
#else
129129
if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static PHP_INI_MH(OnUpdateTimeout)
222222
# define PHP_SAFE_MODE_EXEC_DIR ""
223223
#endif
224224

225-
#ifdef PHP_PROG_SENDMAIL
225+
#if defined(PHP_PROG_SENDMAIL) && !defined(NETWARE)
226226
# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
227227
#else
228228
# define DEFAULT_SENDMAIL_PATH NULL

0 commit comments

Comments
 (0)