Bug#311356: perl: file test operator ignores POSIX ACL

2005-05-31 Thread Gabor Kiss
Package: perl
Version: 5.8.4-8
Severity: normal

File::Temp::tempdir reported access right error:
"Error in tempdir() using /tmp/cdbuffer/tmp/XX: Parent directory 
(/tmp/cdbuffer/tmp) is not writable"

However filesystem supports POSIX ACLs and appropriate permissions are set.

Demo scene:

User mapcd.mapcd created a sample script called 'fileoptest' in
directory /tmp/cdbuffer/tmp:

[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ ls -la
total 16
drwxrws---+ 2 root  program 23 May 31 13:58 .
drwxrws---+ 5 root  program 42 May 30 15:15 ..
-rw-rw+ 1 mapcd program 68 May 31 13:58 fileoptest
[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ 

[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ id -a
uid=1005(mapcd) gid=1005(mapcd) groups=1005(mapcd)
[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ 

[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ getfacl .
# file: .
# owner: root
# group: program
user::rwx
group::rwx
group:mapcd:rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:mapcd:rwx
default:mask::rwx
default:other::---
[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ 

[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ cat fileoptest 
#!/usr/bin/perl
print -w(".") ? "writeable\n" : "not writeable\n";
[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ 

[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ perl fileoptest
not writeable
[EMAIL PROTECTED]:/tmp/cdbuffer/tmp$ cd /tmp
[EMAIL PROTECTED]:/tmp$ perl /tmp/cdbuffer/tmp/fileoptest 
writeable
[EMAIL PROTECTED]:/tmp$ 

Gabor

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages perl depends on:
ii  libc6   2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libgdbm31.8.3-2  GNU dbm database routines (runtime
ii  perl-base   5.8.4-8  The Pathologically Eclectic Rubbis
ii  perl-modules5.8.4-8  Core Perl modules

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#311356: perl: file test operator ignores POSIX ACL

2005-10-07 Thread Niko Tyni
Hi,

this is documented behaviour, and the 'filetest' pragma is a solution
for this. See 'perldoc -f -x' and 'perldoc filetest'.

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]