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

Report information
The Basics
Id:
71115
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
peter.john.acklam [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.50
Fixed in:
0.50



Subject: format_mode() can't handle the door file type (Solaris)
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
--- 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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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