]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Remove ending punctation from err messages
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 2 Apr 2026 21:09:37 +0000 (23:09 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 3 Apr 2026 07:32:30 +0000 (09:32 +0200)
Since err() appends more data separated by a colon, do not add a
fullstop to error message.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/utmpdump.c
sys-utils/wdctl.c
tests/helpers/test_md5.c
tests/helpers/test_sha1.c

index 65de1628eb5deb8ac453050f06a7d41105bf0705..5fde719b31be931896db5c93de65b42004847567 100644 (file)
@@ -181,7 +181,7 @@ static int follow_by_inotify(FILE *in, const char *filename, FILE *out)
 
        wd = inotify_add_watch(fd, filename, EVENTS);
        if (wd == -1)
-               err(EXIT_FAILURE, _("%s: cannot add inotify watch."), filename);
+               err(EXIT_FAILURE, _("%s: cannot add inotify watch"), filename);
 
        while (wd >= 0) {
                errno = 0;
index 0cf8ee7a436330b94f9ad5826c2adda3e8774b33..6fca5e2602ce3c763989029d624ac019d6dec983 100644 (file)
@@ -850,7 +850,7 @@ int main(int argc, char *argv[])
        if (optind == argc) {
                dflt_device = get_default_device();
                if (!dflt_device)
-                       err(EXIT_FAILURE, _("No default device is available."));
+                       err(EXIT_FAILURE, _("No default device is available"));
        }
 
        do {
index dc49d2184a0605625473f2b5ecb5d10884358b22..b9bb3683ee08cc65e1ea36ac86ec3cf8721743b1 100644 (file)
@@ -26,7 +26,7 @@ int main(void)
        }
 
        if(freopen ("/dev/null", "r", stdin) == NULL)
-               err(EXIT_FAILURE, "stdin->null failed!");
+               err(EXIT_FAILURE, "stdin->null failed");
 
        ul_MD5Final( digest, &ctx );
 
index 7cb107f8752c22e8747c173bc53577d6d458a66e..4a040aaddc758a3b5994bcabb6d85bbe10e61703 100644 (file)
@@ -26,7 +26,7 @@ int main(void)
        }
 
        if(freopen ("/dev/null", "r", stdin) == NULL)
-               err(EXIT_FAILURE, "stdin->null failed!");
+               err(EXIT_FAILURE, "stdin->null failed");
 
        ul_SHA1Final( digest, &ctx );