* stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to

ERR_FSYS_CORRUPT if a symlink can't be read for some reason,
but no error is set by read.
This commit is contained in:
jochen committed 2001-09-24 08:43:38 +00:00
1 parent eca369e8d0
commit 49312f5981
2 files changed
+11 -1

No files matched your search

+5 -1
View File
@@ -1037,7 +1037,11 @@ reiserfs_dir (char *dirname)
filepos = 0;
if (! next_key ()
|| reiserfs_read (linkbuf, filemax) != filemax)
return 0;
{
if (! errnum)
errnum = ERR_FSYS_CORRUPT;
return 0;
}
#ifdef REISERDEBUG
printf ("symlink=%s\n", linkbuf);