diff options
author | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-20 15:43:57 +0000 |
---|---|---|
committer | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-20 15:43:57 +0000 |
commit | b3841c9b93e6d87d673171fa831c6ab4c5c3783b (patch) | |
tree | 8c0dc356fb13b6c85d41c03c17c1641f737ab390 /modutils/insmod.c | |
parent | 865711d2d74e71e091028edd74ec18d1174a57c7 (diff) | |
download | busybox-w32-b3841c9b93e6d87d673171fa831c6ab4c5c3783b.tar.gz busybox-w32-b3841c9b93e6d87d673171fa831c6ab4c5c3783b.tar.bz2 busybox-w32-b3841c9b93e6d87d673171fa831c6ab4c5c3783b.zip |
new_process_module_arguments returns 0 on error and 1 if everything went ok
somehow the ! got lost..
symptoms: modules could only be loaded _without_ parameters
git-svn-id: svn://busybox.net/trunk/busybox@8986 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r-- | modutils/insmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 50cf007f0..d1aa24f14 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -290,7 +290,7 @@ extern int insmod_ng_main( int argc, char **argv); | |||
290 | #ifndef MODUTILS_MODULE_H | 290 | #ifndef MODUTILS_MODULE_H |
291 | static const int MODUTILS_MODULE_H = 1; | 291 | static const int MODUTILS_MODULE_H = 1; |
292 | 292 | ||
293 | #ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" | 293 | #ident "$Id: insmod.c,v 1.122 2004/07/20 15:43:57 sandman Exp $" |
294 | 294 | ||
295 | /*======================================================================*/ | 295 | /*======================================================================*/ |
296 | /* For sizeof() which are related to the module platform and not to the | 296 | /* For sizeof() which are related to the module platform and not to the |
@@ -448,7 +448,7 @@ int delete_module(const char *); | |||
448 | #ifndef MODUTILS_OBJ_H | 448 | #ifndef MODUTILS_OBJ_H |
449 | static const int MODUTILS_OBJ_H = 1; | 449 | static const int MODUTILS_OBJ_H = 1; |
450 | 450 | ||
451 | #ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" | 451 | #ident "$Id: insmod.c,v 1.122 2004/07/20 15:43:57 sandman Exp $" |
452 | 452 | ||
453 | /* The relocatable object is manipulated using elfin types. */ | 453 | /* The relocatable object is manipulated using elfin types. */ |
454 | 454 | ||
@@ -3865,7 +3865,7 @@ extern int insmod_main( int argc, char **argv) | |||
3865 | ++optind; | 3865 | ++optind; |
3866 | 3866 | ||
3867 | if (optind < argc) { | 3867 | if (optind < argc) { |
3868 | if (new_process_module_arguments(f, argc - optind, argv + optind)) | 3868 | if (!new_process_module_arguments(f, argc - optind, argv + optind)) |
3869 | { | 3869 | { |
3870 | goto out; | 3870 | goto out; |
3871 | } | 3871 | } |