If cd fails, the whole command should fail. Better escape taskdir
path.
properly escape arguments when using paramiko
Tested with
runtask -i 'aa;touch /tmp/hacked;echo ' -t koji_build ../task-rpmlint/rpmlint.yml --libvirt --debug
If cd fails, the whole command should fail. Better escape taskdir
path.
properly escape arguments when using paramiko
Tested with
runtask -i 'aa;touch /tmp/hacked;echo ' -t koji_build ../task-rpmlint/rpmlint.yml --libvirt --debug
manually ran a test, works
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
taskdir is not getting escaped, if you really, really wanted to escape it, use subprocess.list2cmdline instead of ' ' .join().
But at least half of your patch does what you wanted, so...
Haha, you're at least half right, subprocess.list2cmdline seems to be used for MS shell escaping ;-)
Thanks, though!