]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
misc: consolidate stat() error message
authorKarel Zak <kzak@redhat.com>
Mon, 21 Jun 2021 10:40:41 +0000 (12:40 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Jun 2021 10:40:41 +0000 (12:40 +0200)
Let's use the same error message everywhere to reduce number of
strings for translators.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.c
text-utils/more.c

index e5627d3c64c60f922958572e47db2dcb577b7a96..39e2895afd665d44077d832c3c0f06a455e97b46 100644 (file)
@@ -205,7 +205,7 @@ static ino_t get_mnt_ino(pid_t pid)
        snprintf(path, sizeof(path), "/proc/%u/ns/mnt", (unsigned) pid);
 
        if (stat(path, &st) != 0)
-               err(EXIT_FAILURE, _("cannot stat %s"), path);
+               err(EXIT_FAILURE, _("stat of %s failed"), path);
        return st.st_ino;
 }
 
index 3f45d1114c222c9f7b23226c1a207c1609aa2785..a57159132b0ab2295cfbc8ca52bbcb7c0f93c001 100644 (file)
@@ -454,7 +454,7 @@ static void checkf(struct more_control *ctl, char *fs)
                return;
        }
        if (fstat(fileno(ctl->current_file), &st) != 0) {
-               warn(_("cannot stat %s"), fs);
+               warn(_("stat of %s failed"), fs);
                return;
        }
        if ((st.st_mode & S_IFMT) == S_IFDIR) {