summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--disk-utils/fdformat.c2
-rw-r--r--disk-utils/fsck.cramfs.c2
-rw-r--r--disk-utils/mkfs.bfs.c2
-rw-r--r--disk-utils/mkfs.cramfs.c4
-rw-r--r--disk-utils/mkfs.minix.c2
-rw-r--r--disk-utils/partx.c2
-rw-r--r--misc-utils/namei.c2
-rw-r--r--sys-utils/dmesg.c2
-rw-r--r--sys-utils/fsfreeze.c2
-rw-r--r--sys-utils/fstrim.c2
-rw-r--r--sys-utils/swapon.c2
-rw-r--r--sys-utils/switch_root.c6
-rw-r--r--term-utils/mesg.c2
-rw-r--r--term-utils/wall.c2
-rw-r--r--text-utils/tailf.c4
15 files changed, 19 insertions, 19 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c
index ec2f6170e..97fd4e8d6 100644
--- a/disk-utils/fdformat.c
+++ b/disk-utils/fdformat.c
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
if (argc < 1)
usage(stderr);
if (stat(argv[0], &st) < 0)
- err(EXIT_FAILURE, _("cannot stat file %s"), argv[0]);
+ err(EXIT_FAILURE, _("stat failed %s"), argv[0]);
if (!S_ISBLK(st.st_mode))
/* do not test major - perhaps this was an USB floppy */
errx(EXIT_FAILURE, _("%s: not a block device"), argv[0]);
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index eab4ed590..ac378307e 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -139,7 +139,7 @@ static void test_super(int *start, size_t * length)
/* find the physical size of the file or block device */
if (stat(filename, &st) < 0)
- err(FSCK_EX_ERROR, _("stat failed: %s"), filename);
+ err(FSCK_EX_ERROR, _("stat failed %s"), filename);
fd = open(filename, O_RDONLY);
if (fd < 0)
diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c
index c93067e20..d83f9e082 100644
--- a/disk-utils/mkfs.bfs.c
+++ b/disk-utils/mkfs.bfs.c
@@ -174,7 +174,7 @@ int main(int argc, char **argv)
device = argv[optind++];
if (stat(device, &statbuf) < 0)
- err(EXIT_FAILURE, _("cannot stat device %s"), device);
+ err(EXIT_FAILURE, _("stat failed %s"), device);
if (!S_ISBLK(statbuf.st_mode))
errx(EXIT_FAILURE, _("%s is not a block special device"), device);
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 37c4da180..44d774083 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -745,7 +745,7 @@ int main(int argc, char **argv)
case 'i':
opt_image = optarg;
if (lstat(opt_image, &st) < 0)
- err(MKFS_EX_USAGE, _("cannot stat %s"), opt_image);
+ err(MKFS_EX_USAGE, _("stat failed %s"), opt_image);
image_length = st.st_size; /* may be padded later */
fslen_ub += (image_length + 3); /* 3 is for padding */
break;
@@ -780,7 +780,7 @@ int main(int argc, char **argv)
outfile = argv[optind + 1];
if (stat(dirname, &st) < 0)
- err(MKFS_EX_USAGE, _("cannot stat %s"), dirname);
+ err(MKFS_EX_USAGE, _("stat failed %s"), dirname);
fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd < 0)
err(MKFS_EX_USAGE, _("cannot open %s"), outfile);
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c
index c5baac125..a1b5162fa 100644
--- a/disk-utils/mkfs.minix.c
+++ b/disk-utils/mkfs.minix.c
@@ -752,7 +752,7 @@ int main(int argc, char ** argv) {
strcpy(tmp+2, ".badblocks");
}
if (stat(device_name, &statbuf) < 0)
- err(MKFS_EX_ERROR, _("%s: stat failed"), device_name);
+ err(MKFS_EX_ERROR, _("stat failed %s"), device_name);
if (S_ISBLK(statbuf.st_mode))
DEV = open(device_name,O_RDWR | O_EXCL);
else
diff --git a/disk-utils/partx.c b/disk-utils/partx.c
index 6c3287b54..a971a7ea8 100644
--- a/disk-utils/partx.c
+++ b/disk-utils/partx.c
@@ -766,7 +766,7 @@ int main(int argc, char **argv)
device = argv[optind];
if (stat(device, &sb))
- err(EXIT_FAILURE, _("%s: stat failed"), device);
+ err(EXIT_FAILURE, _("stat failed %s"), device);
part_devno = sb.st_rdev;
diff --git a/misc-utils/namei.c b/misc-utils/namei.c
index fc1689d2d..376a2f0c3 100644
--- a/misc-utils/namei.c
+++ b/misc-utils/namei.c
@@ -228,7 +228,7 @@ dotdot_stat(const char *dirname, struct stat *st)
memcpy(path + len, DOTDOTDIR, sizeof(DOTDOTDIR));
if (stat(path, st))
- err(EXIT_FAILURE, _("could not stat '%s'"), path);
+ err(EXIT_FAILURE, _("stat failed %s"), path);
free(path);
return st;
}
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 9fc7982a1..2aa904cab 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -361,7 +361,7 @@ static ssize_t read_file_buffer(struct dmesg_control *ctl,
if (fd < 0)
err(EXIT_FAILURE, _("cannot open: %s"), filename);
if (fstat(fd, &st))
- err(EXIT_FAILURE, _("cannot stat: %s"), filename);
+ err(EXIT_FAILURE, _("stat failed %s"), filename);
*buf = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
if (*buf == MAP_FAILED)
diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c
index 5d1702158..1585abb76 100644
--- a/sys-utils/fsfreeze.c
+++ b/sys-utils/fsfreeze.c
@@ -104,7 +104,7 @@ int main(int argc, char **argv)
err(EXIT_FAILURE, _("%s: open failed"), path);
if (fstat(fd, &sb) == -1) {
- warn(_("%s: fstat failed"), path);
+ warn(_("stat failed %s"), path);
goto done;
}
diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c
index bb88bb804..d7633b07a 100644
--- a/sys-utils/fstrim.c
+++ b/sys-utils/fstrim.c
@@ -133,7 +133,7 @@ int main(int argc, char **argv)
}
if (stat(path, &sb) == -1)
- err(EXIT_FAILURE, _("%s: stat failed"), path);
+ err(EXIT_FAILURE, _("stat failed %s"), path);
if (!S_ISDIR(sb.st_mode))
errx(EXIT_FAILURE, _("%s: not a directory"), path);
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 05d025c00..aec7d2e5e 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -443,7 +443,7 @@ static int swapon_checks(const char *special)
unsigned long long devsize = 0;
if (stat(special, &st) < 0) {
- warn(_("%s: stat failed"), special);
+ warn(_("stat failed %s"), special);
goto err;
}
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c
index 4ff3bff8f..bcd801d5f 100644
--- a/sys-utils/switch_root.c
+++ b/sys-utils/switch_root.c
@@ -62,7 +62,7 @@ static int recursiveRemove(int fd)
dfd = dirfd(dir);
if (fstat(dfd, &rb)) {
- warn(_("failed to stat directory"));
+ warn(_("stat failed"));
goto done;
}
@@ -85,7 +85,7 @@ static int recursiveRemove(int fd)
struct stat sb;
if (fstatat(dfd, d->d_name, &sb, AT_SYMLINK_NOFOLLOW)) {
- warn(_("failed to stat %s"), d->d_name);
+ warn(_("stat failed %s"), d->d_name);
continue;
}
@@ -125,7 +125,7 @@ static int switchroot(const char *newroot)
struct stat newroot_stat, sb;
if (stat(newroot, &newroot_stat) != 0) {
- warn(_("failed to stat directory %s"), newroot);
+ warn(_("stat failed %s"), newroot);
return -1;
}
diff --git a/term-utils/mesg.c b/term-utils/mesg.c
index 366c679ac..b24e78335 100644
--- a/term-utils/mesg.c
+++ b/term-utils/mesg.c
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
err(MESG_EXIT_FAILURE, _("ttyname failed"));
if (stat(tty, &sb) < 0)
- err(MESG_EXIT_FAILURE, _("stat %s failed"), tty);
+ err(MESG_EXIT_FAILURE, _("stat failed %s"), tty);
if (!*argv) {
if (sb.st_mode & (S_IWGRP | S_IWOTH)) {
diff --git a/term-utils/wall.c b/term-utils/wall.c
index 996650638..1f44be4c7 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -266,7 +266,7 @@ makemsg(char *fname, size_t *mbufsize, int print_banner)
rewind(fp);
if (fstat(fileno(fp), &sbuf))
- err(EXIT_FAILURE, _("fstat failed"));
+ err(EXIT_FAILURE, _("stat failed"));
*mbufsize = (size_t) sbuf.st_size;
mbuf = xmalloc(*mbufsize);
diff --git a/text-utils/tailf.c b/text-utils/tailf.c
index 10589d8bc..9e77a2f09 100644
--- a/text-utils/tailf.c
+++ b/text-utils/tailf.c
@@ -99,7 +99,7 @@ roll_file(const char *filename, off_t *size)
err(EXIT_FAILURE, _("cannot open \"%s\" for read"), filename);
if (fstat(fd, &st) == -1)
- err(EXIT_FAILURE, _("cannot stat \"%s\""), filename);
+ err(EXIT_FAILURE, _("stat failed %s"), filename);
if (st.st_size == *size) {
close(fd);
@@ -277,7 +277,7 @@ int main(int argc, char **argv)
filename = argv[optind];
if (stat(filename, &st) != 0)
- err(EXIT_FAILURE, _("cannot stat \"%s\""), filename);
+ err(EXIT_FAILURE, _("stat failed %s"), filename);
size = st.st_size;;
tailf(filename, lines);