changeset 1268:77af6bc22fbc draft

Fix od bug reported by Samuel Holland ("od -v -b" was appending default output type even though an output type was specified).
author Rob Landley <rob@landley.net>
date Fri, 25 Apr 2014 05:48:11 -0500
parents dd2fd057111f
children 78a6249f46b8
files toys/posix/od.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys/posix/od.c	Wed Apr 23 17:23:09 2014 -0500
+++ b/toys/posix/od.c	Fri Apr 25 05:48:11 2014 -0500
@@ -278,7 +278,7 @@
   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);