]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Dont use errno unconditionally
authorKhem Raj <raj.khem@gmail.com>
Fri, 3 Feb 2012 07:09:59 +0000 (23:09 -0800)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 3 Feb 2012 16:52:59 +0000 (14:52 -0200)
commit035cbdc763b71f9101b30d9ed72a6dc5ade959db
tree2330f883b6c5710d2685147dda2ef199025664dc
parent3e71e7e7adabb8897653be438c66092c22c081dc
depmod: Dont use errno unconditionally

fopen() will not reset errno if it succeeds so we should
make sure that we only use errno in error cases.

Also fix the diagnostic messages to not use strerror
when there is no error since strerror will not return
anything useful in this case
tools/kmod-depmod.c