aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-09-18 22:38:45 +0000
committerMark Johnston <markj@FreeBSD.org>2025-09-18 22:38:45 +0000
commitbc69d5dffa21cdf228e481b5502fd0f053d65e6d (patch)
treef085f7150a0f037491e3de1f3a28f7c3a82fd9d5
parentdaa63c9417a28ad08881ff03df828fd8180dad12 (diff)
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.
-rw-r--r--usr.sbin/pw/pw.c7
1 files 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;