[Bug 1814] scp get file prepends -- before filename

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Sep 5 17:55:47 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1814

--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  ---
Created attachment 1919
  --> https://bugzilla.mindrot.org/attachment.cgi?id=1919
change triggering the behavior

It was triggered by this change (you can feed it into patch -R to
confirm).  The "--" means the end of the option list to most getopt
implementations (it's specified by SUSv2:
http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html) and it
means that file names begining with "-" can't be mistaken for
arguments.  I'm not sure if we can do anything about it without
removing that safety.

What kind of router is it?

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list