16575088 stat could say "door" instead of "weird file" when operating on a door.
authorRich Burridge <rich.burridge@oracle.com>
Wed, 05 Feb 2014 07:30:26 -0800
changeset 1689 f62328c11ab6
parent 1688 3f0c67b12bf7
child 1690 5b433bad9b33
16575088 stat could say "door" instead of "weird file" when operating on a door.
components/coreutils/patches/file-type.c.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/coreutils/patches/file-type.c.patch	Wed Feb 05 07:30:26 2014 -0800
@@ -0,0 +1,17 @@
+Add support for the Solaris "door" file type with the GNU stat command
+(CR #16575088)
+
+This patch will be submitted upstream.
+
+--- coreutils-8.16/lib/file-type.c.orig	2014-02-04 08:45:32.295255617 -0800
++++ coreutils-8.16/lib/file-type.c	2014-02-04 14:31:27.647845083 -0800
[email protected]@ -55,6 +55,9 @@
+   if (S_ISSOCK (st->st_mode))
+     return _("socket");
+ 
++  if (S_ISDOOR (st->st_mode))
++    return _("door");
++
+   if (S_TYPEISMQ (st))
+     return _("message queue");
+