[git commit master 1/1] depmod: accept and ignore -u, -q, -C FILE

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 17 22:51:16 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=cadf90184c2c74e2c37161efe55cd05fb04e0c59
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Pascal Bellard <pascal.bellard at ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 modutils/depmod.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/modutils/depmod.c b/modutils/depmod.c
index fec6498..85b64a2 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -151,6 +151,8 @@ static void xfreopen_write(const char *file, FILE *f)
  *		Print to stdout all the symbols each module depends on
  *		and the module's file name which provides that symbol.
  *	-r	No-op
+ *	-u	No-op
+ *	-q	No-op
  *
  * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]...
  * -aAeF are accepted but ignored. -vC are not accepted.
@@ -162,7 +164,10 @@ enum {
 	//OPT_e = (1 << 3), /* with -F, print unresolved symbols */
 	//OPT_F = (1 << 4), /* System.map that contains the symbols */
 	OPT_n = (1 << 5), /* dry-run, print to stdout only */
-	OPT_r = (1 << 6)  /* Compat dummy. Linux Makefile uses it */
+	OPT_r = (1 << 6), /* Compat dummy. Linux Makefile uses it */
+	OPT_u = (1 << 7), /* -u,--unresolved-error: ignored */
+	OPT_q = (1 << 8), /* -q,--quiet: ignored */
+	OPT_C = (1 << 9), /* -C,--config etc_modules_conf: ignored */
 };
 
 int depmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
@@ -174,7 +179,7 @@ int depmod_main(int argc UNUSED_PARAM, char **argv)
 	struct utsname uts;
 	int tmp;
 
-	getopt32(argv, "aAb:eF:nr", &moddir_base, NULL);
+	getopt32(argv, "aAb:eF:nruqC:", &moddir_base, NULL, NULL);
 	argv += optind;
 
 	/* goto modules location */
-- 
1.7.1



More information about the busybox-cvs mailing list