From: Denis Vlasenko Date: Sun, 31 Aug 2008 21:56:48 +0000 (-0000) Subject: insmod: fix detection of open failure X-Git-Tag: 1_13_0~215 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04e458d435a3d1bf1be9c343aedd438483cb690f;p=oweals%2Fbusybox.git insmod: fix detection of open failure --- diff --git a/modutils/insmod.c b/modutils/insmod.c index 09e7d6811..80dbfd78e 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -4275,7 +4275,7 @@ static int insmod_ng_main(int argc UNUSED_PARAM, char **argv) } #else len = MAXINT(ssize_t); - map = xmalloc_open_read_close(filename, &len); + map = xmalloc_xopen_read_close(filename, &len); #endif if (init_module(map, len, options) != 0)