Skip to content

Commit d25d507

Browse files
author
Anantha Kesari H Y
committed
NetWare LibC has mkstemp implementation
1 parent fc7bbdd commit d25d507

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

main/php_open_temporary_file.c

-9
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
106106
#endif
107107
;
108108
#endif
109-
#ifdef NETWARE
110-
char *file_path = NULL;
111-
#endif
112109

113110
if (!path) {
114111
return -1;
@@ -133,12 +130,6 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
133130
VCWD_CHMOD(opened_path, 0600);
134131
fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600);
135132
}
136-
#elif defined(NETWARE)
137-
/* Using standard mktemp() implementation for NetWare */
138-
file_path = mktemp(opened_path);
139-
if (file_path) {
140-
fd = VCWD_OPEN(file_path, open_flags);
141-
}
142133
#elif defined(HAVE_MKSTEMP)
143134
fd = mkstemp(opened_path);
144135
#else

0 commit comments

Comments
 (0)