wok view 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 source
1 --- busybox-1.17.0/modutils/depmod.c
2 +++ busybox-1.17.0/modutils/depmod.c
3 @@ -35,7 +35,10 @@
4 ARG_e = (1<<3), /* with -F, print unresolved symbols */
5 ARG_F = (1<<4), /* System.map that contains the symbols */
6 ARG_n = (1<<5), /* dry-run, print to stdout only */
7 - ARG_r = (1<<6) /* Compat dummy. Linux Makefile uses it */
8 + ARG_r = (1<<6), /* Compat dummy. Linux Makefile uses it */
9 + ARG_u = (1<<7), /* unresolved-error: ignored */
10 + ARG_q = (1<<8), /* quiet: ignored */
11 + ARG_C = (1<<9) /* config: ignored */
12 };
14 static int FAST_FUNC parse_module(const char *fname, struct stat *sb UNUSED_PARAM,
15 @@ -143,7 +146,7 @@
16 struct utsname uts;
17 int tmp;
19 - getopt32(argv, "aAb:eF:nr", &moddir_base, NULL);
20 + getopt32(argv, "aAb:eF:nruqC:", &moddir_base, NULL);
21 argv += optind;
23 /* goto modules location */
25 --- busybox-1.17.0/libbb/read_printf.c
26 +++ busybox-1.17.0/libbb/read_printf.c
27 @@ -337,10 +337,16 @@
29 sfx = strrchr(fname, '.');
30 if (sfx) {
31 + char magic[2];
32 +
33 sfx++;
34 - if (ENABLE_FEATURE_SEAMLESS_LZMA && strcmp(sfx, "lzma") == 0)
35 - /* .lzma has no header/signature, just trust it */
36 + xread(fd, &magic, 2);
37 + xlseek(fd, 0, SEEK_SET);
38 + if (ENABLE_FEATURE_SEAMLESS_LZMA
39 + && ((magic[0] == 0x5d && magic[1] == 0)
40 + || strcmp(sfx, ".lzma") == 0)) {
41 open_transformer(fd, unpack_lzma_stream, "unlzma");
42 + }
43 else
44 if ((ENABLE_FEATURE_SEAMLESS_GZ && strcmp(sfx, "gz") == 0)
45 || (ENABLE_FEATURE_SEAMLESS_BZ2 && strcmp(sfx, "bz2") == 0)