disabling local-to-local transfers?
Damien Miller
djm at mindrot.org
Mon Jul 27 22:11:46 AEST 2026
On Sat, 25 Jul 2026, Brian Candler wrote:
> On 25/07/2026 02:05, Damien Miller wrote:
> > for av in "$@" ; do
> > if test -z "$_flagsdone" ; then
> > case "$av" in
> > -*) continue ;;
> > *) _flagsdone=1 ;;
> > esac
> > fi
> > case "$av" in
> > *:*) _remote=1 ;;
> > esac
> > done
>
> That's a rough heuristic. I think that properly parsing scp arguments is
> hard, e.g.
>
> scp -J 2001:db8::1 foo bar
>
> A fully-functional wrapper would likely have to duplicate the entire
> argument parsing code from scp.
sure, but at this point you have to realise that you're debugging a joke
More information about the openssh-unix-dev
mailing list