svn commit: trunk/busybox/modutils
vapier at busybox.net
vapier at busybox.net
Tue Jun 6 06:19:20 UTC 2006
Author: vapier
Date: 2006-06-05 23:19:19 -0700 (Mon, 05 Jun 2006)
New Revision: 15295
Log:
fix from uClinux-dist for proper exit status if reading /proc/modules failed
Modified:
trunk/busybox/modutils/lsmod.c
Changeset:
Modified: trunk/busybox/modutils/lsmod.c
===================================================================
--- trunk/busybox/modutils/lsmod.c 2006-06-06 06:15:52 UTC (rev 15294)
+++ trunk/busybox/modutils/lsmod.c 2006-06-06 06:19:19 UTC (rev 15295)
@@ -190,13 +190,13 @@
}
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 */
More information about the busybox-cvs
mailing list