From 06191693d4d253a8496677dd02e3b8529a7fce2c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 17 Sep 2004 17:10:17 -0400 Subject: [PATCH] resize2fs.c (check_and_change_inodes): Fix debugging printf to mask off the high 256 bits of dirent->name_len (which is where the file type information is stored). (Addresses Debian Bug #271605) --- resize/ChangeLog | 7 +++++++ resize/resize2fs.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/resize/ChangeLog b/resize/ChangeLog index aa52dc0..1cc56f2 100644 --- a/resize/ChangeLog +++ b/resize/ChangeLog @@ -1,3 +1,10 @@ +2004-09-17 Theodore Ts'o + + * resize2fs.c (check_and_change_inodes): Fix debugging printf to + mask off the high 256 bits of dirent->name_len (which is + where the file type information is stored). (Addresses + Debian Bug #271605) + 2004-04-03 Theodore Ts'o * Makefile.in: Update the modtime even if subst doesn't need to diff --git a/resize/resize2fs.c b/resize/resize2fs.c index b7f2c99..3befbaa 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -1232,7 +1232,7 @@ static int check_and_change_inodes(ext2_ino_t dir, #ifdef RESIZE2FS_DEBUG if (is->rfs->flags & RESIZE_DEBUG_INODEMAP) printf(_("Inode translate (dir=%u, name=%.*s, %u->%u)\n"), - dir, dirent->name_len, dirent->name, + dir, dirent->name_len&0xFF, dirent->name, dirent->inode, new_inode); #endif -- 1.8.3.1