HAL calls command "mount" with device name likes //dev/xxx. Busybox
"mount" doesn't simplify device path if the second argument
(mountpoint) is presented. Command "umount" always simplifies device
path, so it can't find device in fstab. The patch for fixing this
problem is attached.
--- busybox-1.13.0/util-linux/mount.c.orig 2008-10-30 13:41:42.000000000
+0600
+++ busybox-1.13.0/util-linux/mount.c 2009-01-03 05:04:25.000000000 +0600
@@ -1816,7 +1816,8 @@
if (argv[1]) {
if (nonroot)
bb_error_msg_and_die(must_be_root);
- mtpair->mnt_fsname = argv[0];
+ storage_path = bb_simplify_path(argv[0]); // malloced
+ mtpair->mnt_fsname = storage_path;
mtpair->mnt_dir = argv[1];
mtpair->mnt_type = fstype;
mtpair->mnt_opts = cmdopts;
@@ -1824,6 +1825,7 @@
resolve_mount_spec(&mtpair->mnt_fsname);
}
rc = singlemount(mtpair, 0);
+ free(storage_path);
return rc;
}
storage_path = bb_simplify_path(argv[0]); // malloced
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox