aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2022-07-29 18:11:09 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2022-07-29 18:11:46 +0000
commit58cb3626762d8ec9c499a664223190648479fc5a (patch)
tree3435e884616e5725160d743fc04fbccbf2a6521a /sbin
parentb0f73768220e945deebebefc4a2d63ae6a3bfe19 (diff)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/misc/subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/geom/misc/subr.c b/sbin/geom/misc/subr.c
index 3985ae56edc6..297a1cc09a36 100644
--- a/sbin/geom/misc/subr.c
+++ b/sbin/geom/misc/subr.c
@@ -398,6 +398,8 @@ gctl_error(struct gctl_req *req, const char *error, ...)
fprintf(stderr, "\n");
}
va_end(ap);
+ if (req != NULL && req->nerror == 0)
+ req->nerror = EINVAL;
}
static void *