freebsd-dev/sbin/geom
Kirk McKusick 58cb362676 Fix for 90e2971 that caused some geli commands to return the wrong exit status.
The reported problem is that some geli commands exit with a
success status when they should exit with a failed status.

The gctl_error() function is defined differently in the kernel
(in sys/geom/geom_ctl.c) versus in the geom user facilities (in
sbin/geom/misc/subr.c). In the kernel, calling gctl_error() causes
an error return to be set while in the user version it does not.
It was only by a quirk that had been added to the user geom return
processing that I "cleaned up" that the lack of the user implementaion
to set the error return showed up.

This patch adds the missing setting of the error code when calling
the user facility gctl_error().

Reported by:  Jenkins
Debugging by: Alan Somers
Debugging by: Cy Schubert
Debugging by: Li-Wen Hsu
2022-07-29 11:11:46 -07:00
..
core Clarify when GEOM utilities exit with success or failure. 2022-07-16 10:26:51 -07:00
misc Fix for 90e2971 that caused some geli commands to return the wrong exit status. 2022-07-29 11:11:46 -07:00
Makefile Remove all the RELEASE_CRUNCH defines, they are useless. 2019-12-16 21:06:24 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00