From f1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7 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. --- libutil/gr_util.c | 4 ++-- libutil/pw_util.c | 4 ++-- 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); -- cgit v1.2.3-56-ge451