diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-21 15:00:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-21 15:04:59 +0100 |
commit | 9ce85210e61e6c75adfc0ac0f54643cfee1353be (patch) | |
tree | 0954ee5130e8ba9a709d31405680c2b7b6d9d011 /docs | |
parent | 7b81a44c87cf71dfb4f647ba107624e208ffbefe (diff) | |
download | busybox-w32-9ce85210e61e6c75adfc0ac0f54643cfee1353be.tar.gz busybox-w32-9ce85210e61e6c75adfc0ac0f54643cfee1353be.tar.bz2 busybox-w32-9ce85210e61e6c75adfc0ac0f54643cfee1353be.zip |
su: escape quotes and backslashes in command
In 'su -c "CMD"' CMD should become a single argument to busybox
sh -c ...
But previously, the parameter string to ShellExecute was constructed
by placing the literal value of CMD inside double quotes, which could
result in incorrect and/or more than one parameter seen by the
program, because double-quotes and (some) backslashes in CMD should
be escaped while constructing the string, but they weren't.
Now they're escaped so that the WIN32 CommandLineToArgv[W] parses it
into a single argument with value identical to the original CMD.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions