Subject: Re: Perl mkdir
To: Lucio De Re <email@example.com>
From: Greywolf <firstname.lastname@example.org>
Date: 08/02/2004 14:26:46
Thus spake Lucio De Re ("LDR> ") sometime Friday...
LDR> I haven't explored the actual source, but it seems likely to me that
LDR> Perl 5.8 has a small error in the NetBSD implementation of mkdir().
LDR> As was discussed here before, NetBSD mkdir(2) does not allow a
LDR> trailing slash delimiter and, unless I misunderstood, it is left to
LDR> the users of the function to remove such a slash if encountered.
LDR> I have installed the F-Prot virus checker for NetBSD and its mail
LDR> scanner kept crashing until I removed some gratuitous slashes in a
LDR> directory name. Instead of me making corrections to the source of
LDR> scan-mail.pl, it would be preferable if Perl made allowance for the
LDR> NetBSD behaviour and my hope is that somebody with influence on Perl
LDR> development may be monitoring this list and will have this minor
LDR> niggle sorted out.
Hm. I don't think that mkdir(2) disallows the trailing slash at all.
$ perl --version
This is perl, v5.6.1 built for sparc-netbsd
$ perl -e 'mkdir "/tmp/foo/";'
$ ls -ld /tmp/foo/
drwxr-xr-x 2 greywolf wheel 512 Aug 2 14:25 /tmp/foo/
$ uname -a
NetBSD lothlorien.starwolf.com 1.6ZE NetBSD 1.6ZE (LOTHLORIEN) #4: Thu Oct 30 00:19:30 PST 2003 Greywolf@rivendell.starwolf.com:/usr/src/sys/arch/sparc/compile/LOTHLORIEN sparc
Did something change since then?
System V Release 4 /MIS tem FIVE re LEES FORE/ n. 1. An operating system so
hideously huge, bloated and driven by marketing rather than performance or
functionality that it has outlived its own usefulness (we hope). See
"Wrong Answer, The".