libutil: remove extraneous ": " from error messages
Each of the err() family of functions already takes care of that.
This commit is contained in:
parent
0447cda0cb
commit
39c64ed6d1
@ -108,11 +108,11 @@ gr_lock(void)
|
|||||||
if (errno == EWOULDBLOCK) {
|
if (errno == EWOULDBLOCK) {
|
||||||
errx(1, "the group file is busy");
|
errx(1, "the group file is busy");
|
||||||
} else {
|
} else {
|
||||||
err(1, "could not lock the group file: ");
|
err(1, "could not lock the group file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fstat(lockfd, &st) == -1)
|
if (fstat(lockfd, &st) == -1)
|
||||||
err(1, "fstat() failed: ");
|
err(1, "fstat() failed");
|
||||||
if (st.st_nlink != 0)
|
if (st.st_nlink != 0)
|
||||||
break;
|
break;
|
||||||
close(lockfd);
|
close(lockfd);
|
||||||
|
@ -181,7 +181,7 @@ pw_lock(void)
|
|||||||
if (errno == EWOULDBLOCK) {
|
if (errno == EWOULDBLOCK) {
|
||||||
errx(1, "the password db file is busy");
|
errx(1, "the password db file is busy");
|
||||||
} else {
|
} 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.
|
* close and retry.
|
||||||
*/
|
*/
|
||||||
if (fstat(lockfd, &st) == -1)
|
if (fstat(lockfd, &st) == -1)
|
||||||
err(1, "fstat() failed: ");
|
err(1, "fstat() failed");
|
||||||
if (st.st_nlink != 0)
|
if (st.st_nlink != 0)
|
||||||
break;
|
break;
|
||||||
close(lockfd);
|
close(lockfd);
|
||||||
|
Loading…
Reference in New Issue
Block a user