From f87a24b6f0d83608e15662967e76b96850537199 Mon Sep 17 00:00:00 2001 From: Denis <146707790+dnzbk@users.noreply.github.com> Date: Mon, 6 May 2024 11:19:04 +0300 Subject: [PATCH] Fix: possibility to use value 0 for umask (#264) - fixed possibility to use value 0 for umask. --- daemon/main/nzbget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/main/nzbget.cpp b/daemon/main/nzbget.cpp index 874e01268..81dc0c3ac 100644 --- a/daemon/main/nzbget.cpp +++ b/daemon/main/nzbget.cpp @@ -273,7 +273,7 @@ void NZBGet::Init() #ifndef WIN32 mode_t uMask = static_cast(m_options->GetUMask()); - if (uMask > 0 && uMask < 01000) + if (uMask >= 0 && uMask < 01000) { /* set newly created file permissions */ FileSystem::uMask = uMask;