From 9edd19aad6201d9e186e74d48d72742934c1ef6b Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 24 Apr 1996 18:24:17 +0000 Subject: (DIRECT_NAMLEN) [LITTLE_ENDIAN]: Deal with case correctly where it was written without the extension on a big endian machine. --- ufs/dir.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ufs/dir.h b/ufs/dir.h index 193e167b..1c35768a 100644 --- a/ufs/dir.h +++ b/ufs/dir.h @@ -90,8 +90,9 @@ struct directory_entry { /* Return the namlen from a struct direct, paying attention to whether this filesystem supports the type extension */ #if (BYTE_ORDER == LITTLE_ENDIAN) -#define DIRECT_NAMLEN(dp) (direct_symlink_extension ? (dp)->d_namlen : \ - (dp)->d_type) +#define DIRECT_NAMLEN(dp) (direct_symlink_extension || swab_disk \ + ? (dp)->d_namlen \ + : (dp)->(dp)->d_type) #else #define DIRECT_NAMLEN(dp) ((dp)->d_namlen) #endif -- cgit v1.2.3