Allow GEOM utilities to specify a -v option.

Follow up for 3c8192eb8267

(cherry picked from commit e38717c128)
This commit is contained in:
Kirk McKusick 2021-11-11 12:10:28 -08:00
parent 0fdc76eaab
commit 8b495114ea

View File

@ -445,7 +445,7 @@ set_flags(struct g_command *cmd)
{
unsigned flags = 0;
if ((cmd->gc_flags & G_FLAG_VERBOSE) != 0)
if ((cmd->gc_flags & G_FLAG_VERBOSE) != 0 && verbose)
flags |= G_FLAG_VERBOSE;
return (flags);