Skip to content

Commit

Permalink
Honor the user set umask value
Browse files Browse the repository at this point in the history
drip should respect the umask set in the environment
especially so that it doesn't inadvertently create world
writable files/directories.
  • Loading branch information
mgrubb committed Sep 10, 2013
1 parent 2aab88b commit d754b06
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/drip_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ int main(int argc, char **argv) {
// Start a child process and exit the parent.
if (check("fork parent", fork()) != 0) exit(0);

umask(0);

int child = check("fork child", fork());
if (child == 0) {
check("setsid", setsid());
Expand Down

0 comments on commit d754b06

Please sign in to comment.