mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-22 06:12:35 +00:00
Use POSIX sh and collect VeraCrypt arguments as quoted positional parameters. Preserve whitespace in option values and keep wildcard characters literal. Handle calls without an option list and skip flags supplied between the mountpoint and -o. Collect system, nokernelcrypto, headerbak, and timestamp into one --mount-options argument. Previously, only system had a mapping to that argument; the remaining options went to the filesystem options. Reject the obsolete truecrypt option before invoking VeraCrypt. Validation: 32 cases passed under both Bash and dash using a stub executable, with comparisons against the original helper. Signed-off-by: Ville Takio <ville+git@takio.fi>