Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448293aa authored by Al Viro's avatar Al Viro
Browse files

befs_readdir(): do not increment ->f_pos if filldir tells us to stop



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 31abdab9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ befs_readdir(struct file *filp, void *dirent, filldir_t filldir)
		result = filldir(dirent, keybuf, keysize, filp->f_pos,
				 (ino_t) value, d_type);
	}

	if (!result)
		filp->f_pos++;

	befs_debug(sb, "<--- befs_readdir() filp->f_pos %Ld", filp->f_pos);