Subject: insmod: Fixes errno override.
authorJonathan Masters <jcm@jcm.boston.redhat.com>
Fri, 8 Dec 2006 10:10:47 +0000 (05:10 -0500)
committerJonathan Masters <jcm@jcm.boston.redhat.com>
Fri, 8 Dec 2006 10:10:47 +0000 (05:10 -0500)
commit5244693471120f98230f4c3ad6e8f200ce86deb9
tree5c09c01f00834efd0d4bfb3676f0a7c6a1737d6a
parent2832a37703706d362a77969a2b13c5e4fea57d26
Subject: insmod: Fixes errno override.

If the read() call in grab_file() fails, errno can be overriden by the
call to close().

It's better to stay with read()'s error because it probably has the
explanation we're interested in.

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Jon Masters <jcm@jonmasters.org>
insmod.c