From 934cc6fcec527f0e1369aee97497ebb045bad1ff Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 31 Jan 2017 21:29:45 +0100 Subject: [PATCH] Fix for https://github.com/hashcat/hashcat/issues/1006 --- src/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.c b/src/shared.c index fbffa6967..bad8c01e9 100644 --- a/src/shared.c +++ b/src/shared.c @@ -246,7 +246,7 @@ bool hc_path_create (const char *path) { if (hc_path_exist (path) == true) return false; - if (creat (path, O_CREAT) == -1) return false; + if (creat (path, S_IRUSR | S_IWUSR) == -1) return false; unlink (path);