diff options
author | avatar <avatar@FreeBSD.org> | 2005-12-19 05:52:37 +0000 |
---|---|---|
committer | avatar <avatar@FreeBSD.org> | 2005-12-19 05:52:37 +0000 |
commit | 015b4eb56e8559a7f630e82cc8472a3efb543eb1 (patch) | |
tree | 6964b2f879641e3a6f36eb7776d7004e18fa4aa9 /sbin/mount_cd9660 | |
parent | 78593ea518a5f7a532217cea9d87844b9397e7c5 (diff) | |
download | FreeBSD-src-015b4eb56e8559a7f630e82cc8472a3efb543eb1.zip FreeBSD-src-015b4eb56e8559a7f630e82cc8472a3efb543eb1.tar.gz |
Fixing multi-session disc mount by passing the correct "ssector" option
to the kernel.
Submitted by: Enache Adrian <enache at rdslink dot ro>
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r-- | sbin/mount_cd9660/mount_cd9660.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c index 1b198d1..9a9bd9d 100644 --- a/sbin/mount_cd9660/mount_cd9660.c +++ b/sbin/mount_cd9660/mount_cd9660.c @@ -175,7 +175,7 @@ main(int argc, char **argv) build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); - build_iovec(&iov, &iovlen, "ssector", &ssector, sizeof ssector); + build_iovec_argf(&iov, &iovlen, "ssector", "%d", ssector); if (nmount(iov, iovlen, mntflags) < 0) err(1, "%s", dev); |