mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 00:28:11 +00:00
Fix NUL filename on windows
This commit is contained in:
parent
3e4d110fd2
commit
8c3808bad5
@ -374,7 +374,7 @@ static bool opencl_test_instruction (hashcat_ctx_t *hashcat_ctx, cl_context cont
|
|||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
const int stderr_bak = dup (fd_stderr);
|
const int stderr_bak = dup (fd_stderr);
|
||||||
#ifdef _WIN
|
#ifdef _WIN
|
||||||
const int tmp = open ("NIL", O_WRONLY);
|
const int tmp = open ("NUL", O_WRONLY);
|
||||||
#else
|
#else
|
||||||
const int tmp = open ("/dev/null", O_WRONLY);
|
const int tmp = open ("/dev/null", O_WRONLY);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user