diff options
Diffstat (limited to 'Utilities/cmtar/encode.c')
-rw-r--r-- | Utilities/cmtar/encode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmtar/encode.c b/Utilities/cmtar/encode.c index 3c8cb6a..1c75954 100644 --- a/Utilities/cmtar/encode.c +++ b/Utilities/cmtar/encode.c @@ -197,12 +197,14 @@ void th_set_mode(TAR *t, mode_t fmode) { #ifndef WIN32 +#ifndef __BEOS__ if (S_ISSOCK(fmode)) { fmode &= ~S_IFSOCK; fmode |= S_IFIFO; } #endif +#endif /* Looks like on windows the st_mode is longer than 8 characters. */ int_to_oct(fmode & 07777777, (t)->th_buf.mode, 8); } |