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?