aboutsummaryrefslogtreecommitdiff
path: root/coreutils/fold.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 01:30:39 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 01:30:39 +0000
commit9fc36919f9e590f05a4bc0963b6eb581db5b5d57 (patch)
tree7a894633a6e3e0fd48f32f6fc1eb9596b01477ee /coreutils/fold.c
parent0757b333c6e950da7ca765ffd47249c5c654f7b8 (diff)
downloadbusybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.tar.gz
busybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.tar.bz2
busybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.zip
Move SUSv2 obsolete feature disabling to debug menu, invert meaning of
symbol (switched on to remove now: test your apps to make sure they _don't_ do this, because as some point we should just yank it), fixup head/tail/fold. Also tweak "make allyesconfig" so anything starting with CONFIG_DEBUG gets left switched off. Possibly other things we want to put in the debug menu? git-svn-id: svn://busybox.net/trunk/busybox@13692 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r--coreutils/fold.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c
index ee0fdc250..53ef44681 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -53,25 +53,25 @@ extern int fold_main(int argc, char **argv)
53 int errs = 0; 53 int errs = 0;
54 54
55 55
56#ifdef CONFIG_FEATURE_SUSv2_OBSOLETE 56 if(!ENABLE_DEBUG_YANK_SUSv2) {
57 /* Turn any numeric options into -w options. */ 57 /* Turn any numeric options into -w options. */
58 for (i = 1; i < argc; i++) { 58 for (i = 1; i < argc; i++) {
59 char const *a = argv[i]; 59 char const *a = argv[i];
60 60
61 if (a[0] == '-') { 61 if (a[0] == '-') {
62 if (a[1] == '-' && !a[2]) 62 if (a[1] == '-' && !a[2])
63 break; 63 break;
64 if (isdigit(a[1])) { 64 if (isdigit(a[1])) {
65 char *s = xmalloc(strlen(a) + 2); 65 char *s = xmalloc(strlen(a) + 2);
66 66
67 s[0] = '-'; 67 s[0] = '-';
68 s[1] = 'w'; 68 s[1] = 'w';
69 strcpy(s + 2, a + 1); 69 strcpy(s + 2, a + 1);
70 argv[i] = s; 70 argv[i] = s;
71 }
71 } 72 }
72 } 73 }
73 } 74 }
74#endif
75 75
76 flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt); 76 flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt);
77 if (flags & FLAG_WIDTH) 77 if (flags & FLAG_WIDTH)