git: 8b495114eaa2 - stable/13 - Allow GEOM utilities to specify a -v option.

From: Kirk McKusick <mckusick_at_FreeBSD.org>
Date: Tue, 23 Nov 2021 23:05:18 UTC
The branch stable/13 has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=8b495114eaa23f448a0a5c5b34d7495880d2e2b8

commit 8b495114eaa23f448a0a5c5b34d7495880d2e2b8
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2021-11-11 20:10:28 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2021-11-23 23:04:33 +0000

    Allow GEOM utilities to specify a -v option.
    
    Follow up for 3c8192eb8267
    
    (cherry picked from commit e38717c1282f8bc8b16389839bea015359413df8)
---
 sbin/geom/core/geom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index 2e0d8683df49..0202be9a063e 100644
--- a/sbin/geom/core/geom.c
+++ b/sbin/geom/core/geom.c
@@ -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);