]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
libutil: remove extraneous ": " from error messages
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sat, 20 Jun 2020 06:10:42 +0000 (06:10 +0000)
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sat, 20 Jun 2020 06:10:42 +0000 (06:10 +0000)
Each of the err() family of functions already takes care of that.

libutil/gr_util.c
libutil/pw_util.c

index 796cbf021ded95b1ccfb3e21b7dac366ae2bde23..bab4143be73142795baba00a648b703f7ec31a72 100644 (file)
@@ -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);
index 1659c97a7fcd4e4274a546a66e34be7be4d69ff5..94db72029062cfacefb1211276119f35fb8b0e4c 100644 (file)
@@ -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);