From 39c64ed6d16d07b32f79513c08e81ad916e22bd9 Mon Sep 17 00:00:00 2001 From: Piotr Pawel Stefaniak Date: Sat, 20 Jun 2020 06:10:42 +0000 Subject: libutil: remove extraneous ": " from error messages Each of the err() family of functions already takes care of that. --- lib/libutil/gr_util.c | 4 ++-- lib/libutil/pw_util.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libutil') diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 796cbf021ded..bab4143be731 100644 --- a/lib/libutil/gr_util.c +++ b/lib/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/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 1659c97a7fcd..94db72029062 100644 --- a/lib/libutil/pw_util.c +++ b/lib/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); -- cgit v1.2.3