diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2000-11-30 19:10:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2000-11-30 19:10:04 +0000 |
commit | 603872c61f08c8d86bea2732d2cbf2ac56f25cb3 (patch) | |
tree | da10140007510740ba8c41f606e410881711653f /ext2fs/dir.c | |
parent | 094bbd5f9f9215782cf58e6319aedd8aefb2944d (diff) | |
download | hurd-603872c61f08c8d86bea2732d2cbf2ac56f25cb3.tar.gz hurd-603872c61f08c8d86bea2732d2cbf2ac56f25cb3.tar.bz2 hurd-603872c61f08c8d86bea2732d2cbf2ac56f25cb3.zip |
ext2fs, ufs:
2000-11-30 Marcus Brinkmann <marcus@gnu.org>
* dir.c (diskfs_lookup_hard): If name is too long, clear
DS before returning ENAMETOOLONG.
pfinet:
2000-11-02 Marcus Brinkmann <marcus@gnu.org>
* tunnel.c (trivfs_S_io_get_owner): Add return type to silence
compiler warning.
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) |