On Mon, May 12, 2008 at 05:01:22AM +0100, Al Viro wrote:
Hmm, it should. Thanks for your correction.
IMO, -EIO is fine, because -EINVAL means "Invalid argument", but
there's nothing wrong with arguments here, just some bad things occurred
on reading the binary.
And even if it is really "binary is corrupted", then -ENOEXEC is
better than -EINVAL, isn't it?
Anyway, kernel_read() may return postive when not success.
Thanks.
--
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.
--