mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
owncloud: remove the win32 c_tmpname use.
This commit is contained in:
parent
d50f39c8b8
commit
64f8e5031b
@ -964,15 +964,6 @@ static csync_vio_method_handle_t *owncloud_open(const char *durl,
|
||||
}
|
||||
#else
|
||||
writeCtx->tmpFileName = c_strdup( "/tmp/csync.XXXXXX" );
|
||||
#ifdef _WIN32
|
||||
if( c_tmpname( writeCtx->tmpFileName ) == 0 ) {
|
||||
_fmode = _O_BINARY;
|
||||
|
||||
writeCtx->fd = open( writeCtx->tmpFileName, O_RDWR | O_CREAT | O_EXCL, 0600 );
|
||||
} else {
|
||||
writeCtx->fd = -1;
|
||||
}
|
||||
#else
|
||||
writeCtx->fd = mkstemp( writeCtx->tmpFileName );
|
||||
#endif
|
||||
DEBUG_WEBDAV("opening temp directory %s: %d", writeCtx->tmpFileName, writeCtx->fd );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user