Skip Menu |

This queue is for tickets about the Config-IniFiles CPAN distribution.

Report information
The Basics
Id: 114141
Status: stalled
Priority: 0/
Queue: Config-IniFiles

People
Owner: Nobody in particular
Requestors: fschlich [...] zedat.fu-berlin.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.88
Fixed in: (no value)



Subject: WriteConfig method ignores umask
Files created when using the WriteConfig method fail to be created with proper permissions in regard to umask. The umask specified in /etc/login.defs is 022, which should result in new files with permissions of 644. Instead, new files have a permissions 600. (This is Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691358 where is also mentioned that this default behaviour of tempfile is discussed in https://rt.cpan.org/Public/Bug/Display.html?id=82516)
On Mon May 02 17:49:48 2016, fschlich wrote: Show quoted text
> Files created when using the WriteConfig method fail to be created > with proper permissions in regard to umask. > > The umask specified in /etc/login.defs is 022, which should result > in new files with permissions of 644. Instead, new files have > a permissions 600. > > (This is Debian bug https://bugs.debian.org/cgi- > bin/bugreport.cgi?bug=691358 where is also mentioned that this default > behaviour of tempfile is discussed in > https://rt.cpan.org/Public/Bug/Display.html?id=82516)
You can set the mode using ->SetWriteMode() so this bug report is invalid. Furthermore. if you write to an existing file, then its permissions will be preserved. Rejecting.
On 2016-05-03 05:18:37, SHLOMIF wrote: Show quoted text
> On Mon May 02 17:49:48 2016, fschlich wrote:
> > Files created when using the WriteConfig method fail to be created > > with proper permissions in regard to umask. > > > > The umask specified in /etc/login.defs is 022, which should result > > in new files with permissions of 644. Instead, new files have > > a permissions 600. > > > > (This is Debian bug https://bugs.debian.org/cgi- > > bin/bugreport.cgi?bug=691358 where is also mentioned that this > > default > > behaviour of tempfile is discussed in > > https://rt.cpan.org/Public/Bug/Display.html?id=82516)
> > You can set the mode using ->SetWriteMode() so this bug report is > invalid.
Maybe it's possible to workaround this problem, but not obeying the current umask on a Unix system is at least surprising. I strongly think this should be changed.
On Sun May 15 06:29:02 2016, SREZIC wrote: Show quoted text
> On 2016-05-03 05:18:37, SHLOMIF wrote:
> > On Mon May 02 17:49:48 2016, fschlich wrote:
> > > Files created when using the WriteConfig method fail to be created > > > with proper permissions in regard to umask. > > > > > > The umask specified in /etc/login.defs is 022, which should result > > > in new files with permissions of 644. Instead, new files have > > > a permissions 600. > > > > > > (This is Debian bug https://bugs.debian.org/cgi- > > > bin/bugreport.cgi?bug=691358 where is also mentioned that this > > > default > > > behaviour of tempfile is discussed in > > > https://rt.cpan.org/Public/Bug/Display.html?id=82516)
> > > > You can set the mode using ->SetWriteMode() so this bug report is > > invalid.
> > Maybe it's possible to workaround this problem, but not obeying the > current umask on a Unix system is at least surprising. I strongly > think this should be changed.
Marking as stalled due to lack of interest and contribution.