Date: Sat, 20 Jun 2020 06:10:42 +0000 (UTC) From: Piotr Pawel Stefaniak <pstef@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r362429 - head/lib/libutil Message-ID: <202006200610.05K6AgFm096775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pstef Date: Sat Jun 20 06:10:42 2020 New Revision: 362429 URL: https://svnweb.freebsd.org/changeset/base/362429 Log: libutil: remove extraneous ": " from error messages Each of the err() family of functions already takes care of that. Modified: head/lib/libutil/gr_util.c head/lib/libutil/pw_util.c Modified: head/lib/libutil/gr_util.c ============================================================================== --- head/lib/libutil/gr_util.c Sat Jun 20 04:42:24 2020 (r362428) +++ head/lib/libutil/gr_util.c Sat Jun 20 06:10:42 2020 (r362429) @@ -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); Modified: head/lib/libutil/pw_util.c ============================================================================== --- head/lib/libutil/pw_util.c Sat Jun 20 04:42:24 2020 (r362428) +++ head/lib/libutil/pw_util.c Sat Jun 20 06:10:42 2020 (r362429) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006200610.05K6AgFm096775>