From 8c3808bad5f5ff07b8428e98c84ae310a164e5f5 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Mon, 9 Mar 2020 20:12:36 +0100 Subject: [PATCH] Fix NUL filename on windows --- src/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index b020825e9..1989359a9 100644 --- a/src/backend.c +++ b/src/backend.c @@ -374,7 +374,7 @@ static bool opencl_test_instruction (hashcat_ctx_t *hashcat_ctx, cl_context cont #ifndef DEBUG const int stderr_bak = dup (fd_stderr); #ifdef _WIN - const int tmp = open ("NIL", O_WRONLY); + const int tmp = open ("NUL", O_WRONLY); #else const int tmp = open ("/dev/null", O_WRONLY); #endif