Skip Menu |
 

This queue is for tickets about the Stat-lsMode CPAN distribution.

Report information
The Basics
Id: 71115
Status: new
Priority: 0/
Queue: Stat-lsMode

People
Owner: Nobody in particular
Requestors: pjacklam [...] online.no
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.50
Fixed in: 0.50



Subject: format_mode() can't handle the door file type (Solaris)
Download (untitled) / with headers
text/plain 274b
Solaris has a "door" file type, which is denoted by a "D" in the output from "ls". format_mode() gives a "?" for the file type if given the numeric mode for a door file. The attached patch fixed the problem. stat.h on Solaris has the line #define S_IFDOOR 0xD000 /* door */
Subject: lsMode.pm.patch
Download lsMode.pm.patch
text/x-diff 370b
--- lsMode.pm.orig 1998-04-20 20:19:17.000000000 +0200 +++ lsMode.pm 2011-09-20 16:50:13.662989000 +0200 @@ -20,7 +20,7 @@ @EXPORT = qw(format_mode file_mode format_perms); @perms = qw(--- --x -w- -wx r-- r-x rw- rwx); -@ftype = qw(. p c ? d ? b ? - ? l ? s ? ? ?); +@ftype = qw(. p c ? d ? b ? - ? l ? s D ? ?); $ftype[0] = ''; $NOVICE_MODE = 1; # Default on?


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.