Denys Vlasenko schrieb: >> 2.) There seems to be a bug in bb grep. I did this on my machine: >> >> hive ~ # busybox grep -Fow usbfs /proc/filesystems >> Segmentation fault >> hive ~ # busybox grep -Fo usbfs /proc/filesystems >> Segmentation fault >> hive ~ # busybox grep -F usbfs /proc/filesystems >> nodev usbfs >> hive ~ # busybox grep -o usbfs /proc/filesystems >> usbfs >> hive ~ # busybox grep -w usbfs /proc/filesystems >> nodev usbfs >> hive ~ # busybox grep -ow usbfs /proc/filesystems >> usbfs >> hive ~ # busybox grep usbfs /proc/filesystems >> nodev usbfs >> >> The first two should certainly not result in a Segmentation fault, right? > > It's easier to track reports if you have one bug report per mail, > not several unrelated bugs. > > Try attached patch.
It does not work on my system (s. attached file). I'm using busybox-1.7.2 on Gentoo. What could be wrong? Regards, Marc
***** 8.patch ***** =================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/local/my_ebuilds/sys-apps/busybox/files/8.patch =================== can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -d -urpN busybox.7/findutils/grep.c busybox.8/findutils/grep.c |--- busybox.7/findutils/grep.c 2007-10-20 21:16:24.000000000 +0100 |+++ busybox.8/findutils/grep.c 2007-11-04 00:26:52.000000000 +0000 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored =================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/local/my_ebuilds/sys-apps/busybox/files/8.patch =================== patching file findutils/grep.c Hunk #1 FAILED at 174. Hunk #2 succeeded at 255 (offset -19 lines). 1 out of 2 hunks FAILED -- saving rejects to file findutils/grep.c.rej =================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/local/my_ebuilds/sys-apps/busybox/files/8.patch =================== can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -d -urpN busybox.7/findutils/grep.c busybox.8/findutils/grep.c |--- busybox.7/findutils/grep.c 2007-10-20 21:16:24.000000000 +0100 |+++ busybox.8/findutils/grep.c 2007-11-04 00:26:52.000000000 +0000 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored =================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/local/my_ebuilds/sys-apps/busybox/files/8.patch =================== missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -d -urpN busybox.7/findutils/grep.c busybox.8/findutils/grep.c |--- busybox.7/findutils/grep.c 2007-10-20 21:16:24.000000000 +0100 |+++ busybox.8/findutils/grep.c 2007-11-04 00:26:52.000000000 +0000 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored =================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/local/my_ebuilds/sys-apps/busybox/files/8.patch =================== missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -d -urpN busybox.7/findutils/grep.c busybox.8/findutils/grep.c |--- busybox.7/findutils/grep.c 2007-10-20 21:16:24.000000000 +0100 |+++ busybox.8/findutils/grep.c 2007-11-04 00:26:52.000000000 +0000 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
