diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1996-04-24 18:26:16 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-24 18:26:16 +0000 |
| commit | 39a70332f87c9b83c6c18a4a4d8c23b4aaad69e0 (patch) | |
| tree | 5076e4265ccda4f2d4780f1ea8ad739b232d48c4 /ufs | |
| parent | 71d8cb41e179e2359cf178493f34bbbb8f8c78d1 (diff) | |
(DIRECT_NAMLEN) [! LITTLE_ENDIAN]: Deal correctly with the case where
it was written on a little endian machine without the extension.
Diffstat (limited to 'ufs')
| -rw-r--r-- | ufs/dir.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 /* |
