From f1d020899ca4cfb0cf22a5639626ef5e810f0680 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 24 Jun 2024 14:39:28 +0000 Subject: [PATCH] changing EINVAL from "has no associated size" to "has insufficient size" does a better job of covering the case of partition not configured (size = 0) or other too-small decision the kernel may make --- lib/libc/sys/swapctl.2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/swapctl.2 b/lib/libc/sys/swapctl.2 index 2da86fa9887..3540fd69877 100644 --- a/lib/libc/sys/swapctl.2 +++ b/lib/libc/sys/swapctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: swapctl.2,v 1.25 2021/11/21 23:44:55 jan Exp $ +.\" $OpenBSD: swapctl.2,v 1.26 2024/06/24 14:39:28 deraadt Exp $ .\" $NetBSD: swapctl.2,v 1.10 1998/08/29 17:11:09 mrg Exp $ .\" .\" Copyright (c) 1997 Matthew R. Green @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: November 21 2021 $ +.Dd $Mdocdate: June 24 2024 $ .Dt SWAPCTL 2 .Os .Sh NAME @@ -197,7 +197,7 @@ has already been made available for swapping. .It Bq Er EINVAL The device configured by .Fa arg -has no associated size, or the +has insufficient size, or the .Fa cmd was unknown. .It Bq Er ENXIO -- 2.20.1