diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1996-04-24 18:24:17 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-24 18:24:17 +0000 |
| commit | 71d8cb41e179e2359cf178493f34bbbb8f8c78d1 (patch) | |
| tree | 69d066876132ecf94fe145331843d5ef07837c31 /ufs | |
| parent | 1e4e34806c125a892fc7dc6d143ae60fec90070d (diff) | |
(DIRECT_NAMLEN) [LITTLE_ENDIAN]: Deal with case correctly where it was
written without the extension on a big endian machine.
Diffstat (limited to 'ufs')
| -rw-r--r-- | ufs/dir.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
