summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);