Closed parrobe closed 3 years ago
A simple test of this:
run amqsputc with a userid and for the password pass: " && endmqm QM1 && echo "a
On the old version if QM1 was the name of your queuemanager it would quiese it. On the new version it doesn not.
Same for the Userid.
Fixes issue #2 I refactored the code to use
execv
instead ofpopen
to call amqoampx in the UNIX code ofvalidateCredentials
function. This mean instead of echoing a string passed by an applicaton (which could be escaped) the userid is passed as a direct paramter during theexecv
call and then the password is written to that new process via STDIN.