summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>2020-06-20 06:10:42 +0000
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>2020-06-20 06:10:42 +0000
commitf1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7 (patch)
treea5247d51d3dfa46653b437cab1513c9ebce4cb7c
parentd9dc1bbb352b30f9322b33dcf3327a63a31d138c (diff)
downloadpw-darwin-f1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7.tar.gz
pw-darwin-f1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7.tar.zst
pw-darwin-f1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7.zip
libutil: remove extraneous ": " from error messages
Each of the err() family of functions already takes care of that.
-rw-r--r--libutil/gr_util.c4
-rw-r--r--libutil/pw_util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c
index 796cbf0..bab4143 100644
--- a/libutil/gr_util.c
+++ b/libutil/gr_util.c
@@ -108,11 +108,11 @@ gr_lock(void)
if (errno == EWOULDBLOCK) {
errx(1, "the group file is busy");
} else {
- err(1, "could not lock the group file: ");
+ err(1, "could not lock the group file");
}
}
if (fstat(lockfd, &st) == -1)
- err(1, "fstat() failed: ");
+ err(1, "fstat() failed");
if (st.st_nlink != 0)
break;
close(lockfd);
diff --git a/libutil/pw_util.c b/libutil/pw_util.c
index 1659c97..94db720 100644
--- a/libutil/pw_util.c
+++ b/libutil/pw_util.c
@@ -181,7 +181,7 @@ pw_lock(void)
if (errno == EWOULDBLOCK) {
errx(1, "the password db file is busy");
} else {
- err(1, "could not lock the passwd file: ");
+ err(1, "could not lock the passwd file");
}
}
@@ -191,7 +191,7 @@ pw_lock(void)
* close and retry.
*/
if (fstat(lockfd, &st) == -1)
- err(1, "fstat() failed: ");
+ err(1, "fstat() failed");
if (st.st_nlink != 0)
break;
close(lockfd);