From: Karel Zak Date: Mon, 21 Jun 2021 10:40:41 +0000 (+0200) Subject: misc: consolidate stat() error message X-Git-Tag: v2.38-rc1~416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1293b0f65db1f219a6e1671c96eeec1d3957cf81;p=thirdparty%2Futil-linux.git misc: consolidate stat() error message Let's use the same error message everywhere to reduce number of strings for translators. Signed-off-by: Karel Zak --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index e5627d3c64..39e2895afd 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -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; } diff --git a/text-utils/more.c b/text-utils/more.c index 3f45d1114c..a57159132b 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -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) {