Skip to content

Commit

Permalink
Fix umask value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jun 27, 2017
1 parent 96db6d6 commit 2d90a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ FILE *_mosquitto_fopen(const char *path, const char *mode, bool restrict_read)
FILE *fptr;
mode_t old_mask;

old_mask = umask(0700);
old_mask = umask(0077);
fptr = fopen(path, mode);
umask(old_mask);

Expand Down

0 comments on commit 2d90a1f

Please sign in to comment.