git: bc69d5dffa21 - main - pw: Clean up a couple of errx() calls

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 18 Sep 2025 22:42:47 UTC
The branch main has been updated by markj:

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

commit bc69d5dffa21cdf228e481b5502fd0f053d65e6d
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-09-18 22:38:45 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-09-18 22:38:45 +0000

    pw: Clean up a couple of errx() calls
    
    - Remove a stray backslash.
    - Make an error message fit on one line.
    
    No functional change intended.
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Sponsored by:   Klara, Inc.
---
 usr.sbin/pw/pw.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index fc778b16c7e5..18f1a17ba942 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/pw/pw.c
@@ -143,12 +143,13 @@ main(int argc, char *argv[])
 				optarg = &argv[1][2];
 				if (*optarg == '\0') {
 					if (stat(argv[2], &st) != 0)
-						errx(EX_OSFILE, \
+						errx(EX_OSFILE,
 						    "no such directory `%s'",
 						    argv[2]);
 					if (!S_ISDIR(st.st_mode))
-						errx(EX_OSFILE, "`%s' not a "
-						    "directory", argv[2]);
+						errx(EX_OSFILE,
+						    "`%s' not a directory",
+						    argv[2]);
 					optarg = argv[2];
 					++argv;
 					--argc;