diff options
author | Theodore Ts'o <tytso@mit.edu> | 1998-03-09 13:07:09 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1998-03-09 13:07:09 +0000 |
commit | cce382b12c2e0764b91d143ec6f9549c735f8f9e (patch) | |
tree | 5caf2950bfe8089b228b7576a44c1c771aa7a90f /debugfs/ls.c | |
parent | dc3710e5ea6bd83addec20f6956bda707438fa92 (diff) | |
download | e2fsprogs-cce382b12c2e0764b91d143ec6f9549c735f8f9e.tar.gz |
ChangeLog, ls.c:
Mask off high 8 bits from dirent->name_len.
Many files:
The ext2 version and flags ioctl's take an int *, not a long *. Fix
library to use the correct type, so we don't have problems on the
Alpha.
Diffstat (limited to 'debugfs/ls.c')
-rw-r--r-- | debugfs/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debugfs/ls.c b/debugfs/ls.c index fe6df0a2..2f5c83ac 100644 --- a/debugfs/ls.c +++ b/debugfs/ls.c @@ -84,8 +84,8 @@ static int list_dir_proc(struct ext2_dir_entry *dirent, struct list_dir_struct *ls = (struct list_dir_struct *) private; int thislen; - thislen = (dirent->name_len < EXT2_NAME_LEN) ? dirent->name_len : - EXT2_NAME_LEN; + thislen = ((dirent->name_len & 0xFF) < EXT2_NAME_LEN) ? + (dirent->name_len & 0xFF) : EXT2_NAME_LEN; strncpy(name, dirent->name, thislen); name[thislen] = '\0'; |