Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > c30b3253a7e1e55981fad53c2b818923 > files > 2

perl-Proc-Daemon-0.14-9.fc18.src.rpm

Description: Fix too permissive umask
Bug-Debian: http://bugs.debian.org/732283
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=91450
Author: Axel Beckert <abe@debian.org>

Index: libproc-daemon-perl/lib/Proc/Daemon.pm
===================================================================
--- libproc-daemon-perl.orig/lib/Proc/Daemon.pm	2013-08-29 16:50:09.000000000 +0200
+++ libproc-daemon-perl/lib/Proc/Daemon.pm	2013-12-16 20:20:36.000000000 +0100
@@ -152,7 +152,7 @@
             die "Can't <chdir> to $self->{work_dir}: $!" unless chdir $self->{work_dir};
 
             # Clear the file creation mask.
-            umask 0;
+            umask 066;
 
             # Detach the child from the terminal (no controlling tty), make it the
             # session-leader and the process-group-leader of a new process group.
@@ -633,4 +633,4 @@
     return $pid;
 }
 
-1;
\ No newline at end of file
+1;