mkfs.ubifs: abort add_directory if readdir fails
The existing code sets 'err' to -1 and breaks the readdir loop, but
the error state is never read. This patch modifies the readdir loop
to actualy jump to the error handling branch if readdir fails.
Signed-off-by:
David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Loading
Please register or sign in to comment