svn commit: r260811 - head/cddl/contrib/opensolaris/cmd/zdb

Andriy Gapon avg at FreeBSD.org
Fri Jan 17 10:18:46 UTC 2014


Author: avg
Date: Fri Jan 17 10:18:45 2014
New Revision: 260811
URL: http://svnweb.freebsd.org/changeset/base/260811

Log:
  zdb -R: do not treat numeric parameters to a flag as more flags
  
  Reviewed by:	Matthew Ahrens <mahrens at delphix.com>
  MFC after:	1 week

Modified:
  head/cddl/contrib/opensolaris/cmd/zdb/zdb.c

Modified: head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Fri Jan 17 09:11:44 2014	(r260810)
+++ head/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Fri Jan 17 10:18:45 2014	(r260811)
@@ -3012,6 +3012,7 @@ zdb_read_block(char *thing, spa_t *spa)
 				free(dup);
 				return;
 			}
+			i += p - &flagstr[i + 1]; /* skip over the number */
 		}
 	}
 


More information about the svn-src-all mailing list