wok-6.x rev 1636

busybox: fix depmod -a -b path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 23 20:39:58 2008 +0000 (2008-10-23)
parents 4e3c588a6fd3
children 85fbd04c1fd6
files busybox/stuff/busybox-1.12.0-zmodules.u
line diff
     1.1 --- a/busybox/stuff/busybox-1.12.0-zmodules.u	Thu Oct 23 20:38:19 2008 +0000
     1.2 +++ b/busybox/stuff/busybox-1.12.0-zmodules.u	Thu Oct 23 20:39:58 2008 +0000
     1.3 @@ -191,3 +191,18 @@
     1.4   	argv += optind;
     1.5   
     1.6   	/* If a version is provided, then that kernel version’s module directory
     1.7 +
     1.8 +--- busybox-1.12.0/modutils/depmod.c
     1.9 ++++ busybox-1.12.0/modutils/depmod.c
    1.10 +@@ -141,6 +141,11 @@
    1.11 + 
    1.12 + 	if (!(option_mask32 & ARG_n)) { /* --dry-run */
    1.13 + 		chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE);
    1.14 ++		if (option_mask32 & ARG_b) {
    1.15 ++			char *s = concat_path_file(moddir_base, chp);
    1.16 ++			free(chp);
    1.17 ++			chp = s;
    1.18 ++		}
    1.19 + 		filedes = xfopen_for_write(chp);
    1.20 + 		if (ENABLE_FEATURE_CLEAN_UP)
    1.21 + 			free(chp);