aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-04-25 05:48:11 -0500
committerRob Landley <rob@landley.net>2014-04-25 05:48:11 -0500
commit5f6ec72f8eafb1598fe40d388a38137ce52b03a0 (patch)
tree4216e29667f5159c33454b61177845c55141fd2a
parentf9070f36adfaf1b5c175768fb7169b9ff79da21d (diff)
downloadtoybox-5f6ec72f8eafb1598fe40d388a38137ce52b03a0.tar.gz
Fix od bug reported by Samuel Holland ("od -v -b" was appending default output type even though an output type was specified).
-rw-r--r--toys/posix/od.c2
1 files changed, 1 insertions, 1 deletions
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);