Index: sbin/mount/mount_fs.c =================================================================== --- sbin/mount/mount_fs.c +++ sbin/mount/mount_fs.c @@ -80,7 +80,7 @@ int iovlen; int mntflags = 0; int ch; - char *dev, *dir, mntpath[MAXPATHLEN]; + char *dev, *dir, mntpath[MAXPATHLEN], resolveddev[PATH_MAX]; char fstype[32]; char errmsg[255]; char *p, *val; @@ -123,7 +123,10 @@ warn("%s", mntpath); return (1); } - (void)rmslashes(dev, dev); + if (realpath(dev, resolveddev) != NULL) + dev = resolveddev; + else + (void)rmslashes(dev, dev); build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);