Bug 7850

Summary: Mount helpers program launched with bad options.
Product: Busybox Reporter: Vasilyy <v.balyasnyy>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: patch to fix error

Description Vasilyy 2015-01-29 08:50:25 UTC
Created attachment 5828 [details]
patch to fix error

If you try to launch:
# mount -t ntfs-3g -o ro <DEV> <MNT>
mount helpers try to launch it that way:
# /sbin/ntfs-3g <DEV> <MNT> //without "ro" options

but if you try to launch:
# mount -t ntfs-3g -o SOME_CRAZY_OPTS <DEV> <MNT>
mount helpers try to launch it that way:
# /sbin/ntfs-3g SOME_CRAZY_OPTS <DEV> <MNT> //with not recognized option list

so, recognized option list converted in vfsflags by parse_mount_options method and do not used in mount helpers call.