From ec399f410b97ee533197c082036f16906060ed5e Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 24 Apr 1996 18:26:16 +0000 Subject: (DIRECT_NAMLEN) [! LITTLE_ENDIAN]: Deal correctly with the case where it was written on a little endian machine without the extension. --- ufs/dir.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ufs') diff --git a/ufs/dir.h b/ufs/dir.h index 1c35768a..2b1e3469 100644 --- a/ufs/dir.h +++ b/ufs/dir.h @@ -92,9 +92,11 @@ struct directory_entry { #if (BYTE_ORDER == LITTLE_ENDIAN) #define DIRECT_NAMLEN(dp) (direct_symlink_extension || swab_disk \ ? (dp)->d_namlen \ - : (dp)->(dp)->d_type) + : (dp)->d_type) #else -#define DIRECT_NAMLEN(dp) ((dp)->d_namlen) +#define DIRECT_NAMLEN(dp) (!direct_symlink_extension && swab_disk \ + ? (dp)->d_type \ + : (dp)->d_namlen) #endif /* -- cgit v1.2.3