diff options
| author | Kirk McKusick <mckusick@FreeBSD.org> | 2022-07-29 18:11:09 +0000 |
|---|---|---|
| committer | Kirk McKusick <mckusick@FreeBSD.org> | 2022-07-29 18:11:46 +0000 |
| commit | 58cb3626762d8ec9c499a664223190648479fc5a (patch) | |
| tree | 3435e884616e5725160d743fc04fbccbf2a6521a /sbin | |
| parent | b0f73768220e945deebebefc4a2d63ae6a3bfe19 (diff) | |
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/geom/misc/subr.c | 2 |
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 * |
