summaryrefslogtreecommitdiff
path: root/ufs/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/dir.h')
-rw-r--r--ufs/dir.h6
1 files changed, 4 insertions, 2 deletions
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
/*