From 289dcc90234680063a336925a99d1ef04e97cbda Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 15 Jul 2012 10:39:57 +0200 Subject: translation: unify file open error messages Signed-off-by: Sami Kerola --- fdisks/fdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fdisks/fdisk.c') diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index 3fede9591..99174faef 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -1783,7 +1783,7 @@ static void print_partition_table_from_option(char *device, unsigned long sector struct fdisk_context *cxt = fdisk_new_context_from_filename(device, 1); /* read-only */ if (!cxt) - err(EXIT_FAILURE, _("unable to open %s"), device); + err(EXIT_FAILURE, _("cannot open %s"), device); if (sector_size) /* passed -b option, override autodiscovery */ cxt->phy_sector_size = cxt->sector_size = sector_size; /* passed CHS option(s), override autodiscovery */ @@ -1970,7 +1970,7 @@ static sector_t get_dev_blocks(char *dev) sector_t size; if ((fd = open(dev, O_RDONLY)) < 0) - err(EXIT_FAILURE, _("unable to open %s"), dev); + err(EXIT_FAILURE, _("cannot open %s"), dev); if (blkdev_get_sectors(fd, &size) == -1) { close(fd); err(EXIT_FAILURE, _("BLKGETSIZE ioctl failed on %s"), dev); @@ -2085,7 +2085,7 @@ int main(int argc, char **argv) cxt = fdisk_new_context_from_filename(argv[optind], 0); if (!cxt) - err(EXIT_FAILURE, _("unable to open %s"), argv[optind]); + err(EXIT_FAILURE, _("cannot open %s"), argv[optind]); if (sector_size) /* passed -b option, override autodiscovery */ cxt->phy_sector_size = cxt->sector_size = sector_size; /* passed CHS option(s), override autodiscovery */ -- cgit v1.2.3-55-g7522