Major coreutils update.
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 391d245..1d3e893 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -67,7 +67,6 @@
#endif
static int umountAll = FALSE;
static int doRemount = FALSE;
-extern const char mtab_file[]; /* Defined in utility.c */
@@ -87,8 +86,8 @@
if (mtab_cache != NULL)
return;
- if ((fp = setmntent(mtab_file, "r")) == NULL) {
- error_msg("Cannot open %s", mtab_file);
+ if ((fp = setmntent(bb_path_mtab_file, "r")) == NULL) {
+ bb_error_msg("Cannot open %s", bb_path_mtab_file);
return;
}
while ((e = getmntent(fp))) {
@@ -185,7 +184,7 @@
if (status != 0 && doForce) {
status = umount2(blockDevice, MNT_FORCE);
if (status != 0) {
- error_msg_and_die("forced umount of %s failed!", blockDevice);
+ bb_error_msg_and_die("forced umount of %s failed!", blockDevice);
}
}
#endif
@@ -193,9 +192,9 @@
status = mount(blockDevice, name, NULL,
MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
if (status == 0) {
- error_msg("%s busy - remounted read-only", blockDevice);
+ bb_error_msg("%s busy - remounted read-only", blockDevice);
} else {
- error_msg("Cannot remount %s read-only", blockDevice);
+ bb_error_msg("Cannot remount %s read-only", blockDevice);
}
}
if (status == 0) {
@@ -221,7 +220,7 @@
if (!do_umount(mountpt)) {
/* Don't bother retrying the umount on busy devices */
if (errno == EBUSY) {
- perror_msg("%s", mountpt);
+ bb_perror_msg("%s", mountpt);
status = FALSE;
continue;
}
@@ -241,7 +240,7 @@
char path[PATH_MAX];
if (argc < 2) {
- show_usage();
+ bb_show_usage();
}
#ifdef CONFIG_FEATURE_CLEAN_UP
atexit(mtab_free);
@@ -275,7 +274,7 @@
case 'v':
break; /* ignore -v */
default:
- show_usage();
+ bb_show_usage();
}
}
@@ -287,9 +286,9 @@
return EXIT_FAILURE;
}
if (realpath(*argv, path) == NULL)
- perror_msg_and_die("%s", path);
+ bb_perror_msg_and_die("%s", path);
if (do_umount(path))
return EXIT_SUCCESS;
- perror_msg_and_die("%s", *argv);
+ bb_perror_msg_and_die("%s", *argv);
}