Skip to content
Commit 868506eb authored by Joe Simmons-Talbott's avatar Joe Simmons-Talbott Committed by Adhemerval Zanella
Browse files

system: Add "--" after "-c" for sh (BZ #28519)



Prevent sh from interpreting a user string as shell options if it
starts with '-' or '+'.  Since the version of /bin/sh used for testing
system() is different from the full-fledged system /bin/sh add support
to it for handling "--" after "-c".  Add a testcase to ensure the
expected behavior.

Signed-off-by: default avatarJoe Simmons-Talbott <josimmon@redhat.com>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent 31bfe3ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment