CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2009/12/20 00:28:36

Modified files:
        usr.bin/ssh    : scp.c sftp.c ssh.c 

Log message:
When passing user-controlled options with arguments to other programs,
pass the option and option argument as separate argv entries and
not smashed into one (e.g., as -l foo and not -lfoo).  Also, always
pass a "--" argument to stop option parsing, so that a positional
argument that starts with a '-' isn't treated as an option.  This
fixes some error cases as well as the handling of hostnames and
filenames that start with a '-'.

Based on a diff by halex@
ok halex@ djm@ deraadt@

Reply via email to