projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b306cb7
)
fix from uClinux-dist for proper exit status if reading /proc/modules failed
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 6 Jun 2006 06:19:19 +0000
(06:19 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 6 Jun 2006 06:19:19 +0000
(06:19 -0000)
modutils/lsmod.c
patch
|
blob
|
history
diff --git
a/modutils/lsmod.c
b/modutils/lsmod.c
index 10af2bd0dd9f554939a7477b1303dcf10763ee6d..1020158ed07809b439275877cc68be7169e8792e 100644
(file)
--- a/
modutils/lsmod.c
+++ b/
modutils/lsmod.c
@@
-190,13
+190,13
@@
int lsmod_main(int argc, char **argv)
}
fclose(file);
}
- return
0; /* Success */
+ return
EXIT_SUCCESS;
#else
- if (bb_xprint_file_by_name("/proc/modules") < 0) {
- return 0;
- }
+ if (bb_xprint_file_by_name("/proc/modules") == 0)
+ return EXIT_SUCCESS;
#endif /* CONFIG_FEATURE_2_6_MODULES */
- return 1;
+
+ return EXIT_FAILURE;
}
#endif /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */