diff options
Diffstat (limited to 'src/lib/libc/string/strmode.c')
| -rw-r--r-- | src/lib/libc/string/strmode.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/lib/libc/string/strmode.c b/src/lib/libc/string/strmode.c index cc66071acd..5e7f15e857 100644 --- a/src/lib/libc/string/strmode.c +++ b/src/lib/libc/string/strmode.c | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | */ | 32 | */ | 
| 33 | 33 | ||
| 34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 35 | static char *rcsid = "$OpenBSD: strmode.c,v 1.2 1996/08/19 08:34:20 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: strmode.c,v 1.3 1997/06/13 13:57:20 deraadt Exp $"; | 
| 36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ | 
| 37 | 37 | ||
| 38 | #include <sys/types.h> | 38 | #include <sys/types.h> | 
| @@ -69,6 +69,11 @@ strmode(mode, p) | |||
| 69 | *p++ = 'p'; | 69 | *p++ = 'p'; | 
| 70 | break; | 70 | break; | 
| 71 | #endif | 71 | #endif | 
| 72 | #ifdef S_IFWHT | ||
| 73 | case S_IFWHT: /* whiteout */ | ||
| 74 | *p++ = 'w'; | ||
| 75 | break; | ||
| 76 | #endif | ||
| 72 | default: /* unknown */ | 77 | default: /* unknown */ | 
| 73 | *p++ = '?'; | 78 | *p++ = '?'; | 
| 74 | break; | 79 | break; | 
