author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 05 Feb 2014 07:30:26 -0800 | |
changeset 1689 | f62328c11ab6 |
permissions | -rw-r--r-- |
1689
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
Add support for the Solaris "door" file type with the GNU stat command |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
(CR #16575088) |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
|
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
This patch will be submitted upstream. |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
|
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
--- coreutils-8.16/lib/file-type.c.orig 2014-02-04 08:45:32.295255617 -0800 |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
+++ coreutils-8.16/lib/file-type.c 2014-02-04 14:31:27.647845083 -0800 |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
@@ -55,6 +55,9 @@ |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
if (S_ISSOCK (st->st_mode)) |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
return _("socket"); |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
|
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
+ if (S_ISDOOR (st->st_mode)) |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
+ return _("door"); |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
+ |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
if (S_TYPEISMQ (st)) |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
return _("message queue"); |
f62328c11ab6
16575088 stat could say "door" instead of "weird file" when operating on a door.
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |