Correct iov_len values passed to nmount(2) syscall. More accurate
parameter checking introduced in vfs_mount.c r1.113 rejects them otherwise. Submitted by: R. Imura <imura at ryu16 dot org> Approved by: re (scottl,rwatson)
This commit is contained in:
parent
c59f4d847f
commit
813b9deb37
@ -142,11 +142,11 @@ main(int argc, char **argv)
|
||||
iov[i++].iov_len = sizeof(udf_flags);
|
||||
if (udf_flags & UDFMNT_KICONV) {
|
||||
iov[i].iov_base = "cs_disk";
|
||||
iov[i++].iov_len = sizeof("cs_disk") + 1;
|
||||
iov[i++].iov_len = sizeof("cs_disk");
|
||||
iov[i].iov_base = cs_disk;
|
||||
iov[i++].iov_len = strlen(cs_disk) + 1;
|
||||
iov[i].iov_base = "cs_local";
|
||||
iov[i++].iov_len = sizeof("cs_local") + 1;
|
||||
iov[i++].iov_len = sizeof("cs_local");
|
||||
iov[i].iov_base = cs_local;
|
||||
iov[i++].iov_len = strlen(cs_local) + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user