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
Download (untitled) / with headers
text/plain 471b
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)
Download (untitled) / with headers
text/plain 713b
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.
Download (untitled) / with headers
text/plain 852b
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.
Download (untitled) / with headers
text/plain 998b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.