[BusyBox] bug#1144: find <path> fails

David Douthitt ssrat at mailbag.com
Wed Mar 28 20:58:37 UTC 2001


Package: busybox
Version: 0.50

find . -print fails.  Under 0.49 it states this as an option; under
0.50 the option is gone.

This patch adds the option back in and basically makes it a "null"
option...

The patch also works against 0.51pre ...
-------------- next part --------------
--- busybox-0.50/usage.h	Fri Mar 16 02:06:30 2001
+++ busybox-0.50.new/usage.h	Wed Mar 28 14:52:47 2001
@@ -416,6 +416,7 @@
 	"\nEXPRESSION may consist of:\n" \
 	"\t-follow\t\tDereference symbolic links.\n" \
 	"\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
+	"\t-print\t\tPrint (default and assumed).\n" \
 	USAGE_FIND_TYPE( \
 	"\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
 ) USAGE_FIND_PERM( \
--- busybox-0.50/find.c	Tue Feb 20 00:14:07 2001
+++ busybox-0.50.new/find.c	Wed Mar 28 14:51:42 2001
@@ -143,6 +143,9 @@
 	for (i = firstopt; i < argc; i++) {
 		if (strcmp(argv[i], "-follow") == 0)
 			dereference = TRUE;
+		else if (strcmp(argv[i], "-print") == 0) {
+			;
+			}
 		else if (strcmp(argv[i], "-name") == 0) {
 			if (++i == argc)
 				error_msg_and_die("option `-name' requires an argument");


More information about the busybox mailing list