diff options
author | avg <avg@FreeBSD.org> | 2014-01-17 10:18:45 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-01-17 10:18:45 +0000 |
commit | e1e8b09fdeff5e07793910cdc98e6880b323332e (patch) | |
tree | 81acb25ef6e60e01145b91f50765ff63dfaeb057 /cddl | |
parent | e516af21470c784a4f0e569012b435c5a8ab6364 (diff) | |
download | FreeBSD-src-e1e8b09fdeff5e07793910cdc98e6880b323332e.zip FreeBSD-src-e1e8b09fdeff5e07793910cdc98e6880b323332e.tar.gz |
zdb -R: do not treat numeric parameters to a flag as more flags
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
MFC after: 1 week
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/zdb/zdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zdb/zdb.c b/cddl/contrib/opensolaris/cmd/zdb/zdb.c index 4192812..932687a 100644 --- a/cddl/contrib/opensolaris/cmd/zdb/zdb.c +++ b/cddl/contrib/opensolaris/cmd/zdb/zdb.c @@ -3012,6 +3012,7 @@ zdb_read_block(char *thing, spa_t *spa) free(dup); return; } + i += p - &flagstr[i + 1]; /* skip over the number */ } } |