OSDN Git Service

Fix od bug reported by Samuel Holland ("od -v -b" was appending default output type...
authorRob Landley <rob@landley.net>
Fri, 25 Apr 2014 10:48:11 +0000 (05:48 -0500)
committerRob Landley <rob@landley.net>
Fri, 25 Apr 2014 10:48:11 +0000 (05:48 -0500)
toys/posix/od.c

index 6c7cc94..880432e 100644 (file)
@@ -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);