Skip to content

Commit

Permalink
umask(77) -> umask(077): "allow rwx permission for the owner, but pro…
Browse files Browse the repository at this point in the history
…hibit rwx for everyone else"
  • Loading branch information
roker authored and yoe committed Apr 24, 2024
1 parent a956b6b commit 22ba4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treefiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int open_treefile(char* name, mode_t mode, off_t size, off_t pos, pthread_mutex_

DEBUG("Creating a dummy tempfile for reading");
char tmpname[] = "dummy-XXXXXX";
mode_t oldmode = umask(77);
mode_t oldmode = umask(077);
handle = mkstemp(tmpname);
umask(oldmode);
if (handle>0) {
Expand Down

0 comments on commit 22ba4a8

Please sign in to comment.