Skip Menu |
 

This queue is for tickets about the File-Slurp CPAN distribution.

Report information
The Basics
Id: 92401
Status: new
Priority: 0/
Queue: File-Slurp

People
Owner: Nobody in particular
Requestors: pause [...] tlinx.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 9999.19
Fixed in: (no value)



Subject: test "t/perms.t" is invalid; umask test broken w/ACLs
Download (untitled) / with headers
text/plain 795b
t/perms.t sets umask to 027 writes a file and checks that file's mode is 0640. This is not guaranteed to be true on file systems with ACL's. It is best illustrated by setting a default ACL on the direct in which you are creating the test file. That sets the ACL on any newly created file. Give 'other' any access other than none (like 'r-x' instead of '---'). Then any file created will give "other" read access for non-executables. The defaults established by the file systems override process defaults like umask. Ishtar:> umask 027 Ishtar:> touch zzz Show quoted text
> ll zzz
-rw-rw-r--+ 1 0 Jan 22 21:01 zzz ---why?--- Show quoted text
> lsacl zzz
[u::rw-,u:law:rwx,g::rwx,g:lawgroup:rwx,m::rw-,o::r--] zzz (which it inherited from the directory) -- which specifies its own ACL and a default acl for created files.
BTW, I marked this 'critical', as it prevents File::Slurp from installing (unless done manually).


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.