From 5f6ec72f8eafb1598fe40d388a38137ce52b03a0 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 25 Apr 2014 05:48:11 -0500 Subject: Fix od bug reported by Samuel Holland ("od -v -b" was appending default output type even though an output type was specified). --- toys/posix/od.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') diff --git a/toys/posix/od.c b/toys/posix/od.c index 6c7cc94d..880432e1 100644 --- a/toys/posix/od.c +++ b/toys/posix/od.c @@ -278,7 +278,7 @@ void od_main(void) if (toys.optflags & FLAG_o) append_base("o2"); if (toys.optflags & FLAG_s) append_base("d2"); if (toys.optflags & FLAG_x) append_base("x2"); - if (!TT.output_base) append_base("o2"); + if (!TT.types) append_base("o2"); loopfiles(toys.optargs, do_od); -- cgit v1.2.3