Skip to content

Commit

Permalink
Fix: possibility to use value 0 for umask (#264)
Browse files Browse the repository at this point in the history
- fixed possibility to use value 0 for umask.
  • Loading branch information
dnzbk authored May 6, 2024
1 parent a8ee4fb commit f87a24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/main/nzbget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void NZBGet::Init()

#ifndef WIN32
mode_t uMask = static_cast<mode_t>(m_options->GetUMask());
if (uMask > 0 && uMask < 01000)
if (uMask >= 0 && uMask < 01000)
{
/* set newly created file permissions */
FileSystem::uMask = uMask;
Expand Down

0 comments on commit f87a24b

Please sign in to comment.