diff options
Diffstat (limited to 'ext2fs/dir.c')
-rw-r--r-- | ext2fs/dir.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c index bc83d3b0..2887e1b0 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -161,7 +161,11 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type, namelen = strlen (name); if (namelen > EXT2_NAME_LEN) - return ENAMETOOLONG; + { + if (ds) + diskfs_null_dirstat (ds); + return ENAMETOOLONG; + } try_again: if (ds) |