mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
NetWare LibC has mkstemp implementation
This commit is contained in:
parent
fc7bbdddbd
commit
d25d507bec
@ -106,9 +106,6 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
|
||||
#endif
|
||||
;
|
||||
#endif
|
||||
#ifdef NETWARE
|
||||
char *file_path = NULL;
|
||||
#endif
|
||||
|
||||
if (!path) {
|
||||
return -1;
|
||||
@ -133,12 +130,6 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
|
||||
VCWD_CHMOD(opened_path, 0600);
|
||||
fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600);
|
||||
}
|
||||
#elif defined(NETWARE)
|
||||
/* Using standard mktemp() implementation for NetWare */
|
||||
file_path = mktemp(opened_path);
|
||||
if (file_path) {
|
||||
fd = VCWD_OPEN(file_path, open_flags);
|
||||
}
|
||||
#elif defined(HAVE_MKSTEMP)
|
||||
fd = mkstemp(opened_path);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user