wok diff busybox/stuff/busybox-1.17.0-zmodules.u @ rev 5773
Up busybox (1.17.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 06 15:09:01 2010 +0200 (2010-07-06) |
parents | |
children | 1ed09465c0ae |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.17.0-zmodules.u Tue Jul 06 15:09:01 2010 +0200 1.3 @@ -0,0 +1,45 @@ 1.4 +--- busybox-1.17.0/modutils/depmod.c 1.5 ++++ busybox-1.17.0/modutils/depmod.c 1.6 +@@ -35,7 +35,10 @@ 1.7 + ARG_e = (1<<3), /* with -F, print unresolved symbols */ 1.8 + ARG_F = (1<<4), /* System.map that contains the symbols */ 1.9 + ARG_n = (1<<5), /* dry-run, print to stdout only */ 1.10 +- ARG_r = (1<<6) /* Compat dummy. Linux Makefile uses it */ 1.11 ++ ARG_r = (1<<6), /* Compat dummy. Linux Makefile uses it */ 1.12 ++ ARG_u = (1<<7), /* unresolved-error: ignored */ 1.13 ++ ARG_q = (1<<8), /* quiet: ignored */ 1.14 ++ ARG_C = (1<<9) /* config: ignored */ 1.15 + }; 1.16 + 1.17 + static int FAST_FUNC parse_module(const char *fname, struct stat *sb UNUSED_PARAM, 1.18 +@@ -143,7 +146,7 @@ 1.19 + struct utsname uts; 1.20 + int tmp; 1.21 + 1.22 +- getopt32(argv, "aAb:eF:nr", &moddir_base, NULL); 1.23 ++ getopt32(argv, "aAb:eF:nruqC:", &moddir_base, NULL); 1.24 + argv += optind; 1.25 + 1.26 + /* goto modules location */ 1.27 + 1.28 +--- busybox-1.17.0/libbb/read_printf.c 1.29 ++++ busybox-1.17.0/libbb/read_printf.c 1.30 +@@ -337,10 +337,16 @@ 1.31 + 1.32 + sfx = strrchr(fname, '.'); 1.33 + if (sfx) { 1.34 ++ char magic[2]; 1.35 ++ 1.36 + sfx++; 1.37 +- if (ENABLE_FEATURE_SEAMLESS_LZMA && strcmp(sfx, "lzma") == 0) 1.38 +- /* .lzma has no header/signature, just trust it */ 1.39 ++ xread(fd, &magic, 2); 1.40 ++ xlseek(fd, 0, SEEK_SET); 1.41 ++ if (ENABLE_FEATURE_SEAMLESS_LZMA 1.42 ++ && ((magic[0] == 0x5d && magic[1] == 0) 1.43 ++ || strcmp(sfx, ".lzma") == 0)) { 1.44 + open_transformer(fd, unpack_lzma_stream, "unlzma"); 1.45 ++ } 1.46 + else 1.47 + if ((ENABLE_FEATURE_SEAMLESS_GZ && strcmp(sfx, "gz") == 0) 1.48 + || (ENABLE_FEATURE_SEAMLESS_BZ2 && strcmp(sfx, "bz2") == 0)