# HG changeset patch # User Pascal Bellard # Date 1224794398 0 # Node ID c7968a159ca2c688252e9476355c187bab77c9bd # Parent 4e3c588a6fd3ae62621dcac93bbc2822d71db385 busybox: fix depmod -a -b path diff -r 4e3c588a6fd3 -r c7968a159ca2 busybox/stuff/busybox-1.12.0-zmodules.u --- a/busybox/stuff/busybox-1.12.0-zmodules.u Thu Oct 23 20:38:19 2008 +0000 +++ b/busybox/stuff/busybox-1.12.0-zmodules.u Thu Oct 23 20:39:58 2008 +0000 @@ -191,3 +191,18 @@ argv += optind; /* If a version is provided, then that kernel version’s module directory + +--- busybox-1.12.0/modutils/depmod.c ++++ busybox-1.12.0/modutils/depmod.c +@@ -141,6 +141,11 @@ + + if (!(option_mask32 & ARG_n)) { /* --dry-run */ + chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE); ++ if (option_mask32 & ARG_b) { ++ char *s = concat_path_file(moddir_base, chp); ++ free(chp); ++ chp = s; ++ } + filedes = xfopen_for_write(chp); + if (ENABLE_FEATURE_CLEAN_UP) + free(chp);