search for: netcat_pid

Displaying 1 result from an estimated 1 matches for "netcat_pid".

2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...+# Placed in the Public Domain. + +tid="streamlocal forwarding" + +USER=`id -u` +NC=$OBJ/netcat +REMOTE_DIR=$OBJ/remote-$USER + +start_sshd + +trace "remote forwarding, relative socket path disabled on server" +rm -f $OBJ/localsock +$NC -U -l $OBJ/localsock > /dev/null & +netcat_pid=$! +${SSH} -F $OBJ/ssh_config -p$PORT -o ExitOnForwardFailure=yes -R ./remotesock:$OBJ/localsock somehost true +r=$? +kill $netcat_pid 2>&1 >/dev/null +if [ $r -eq 0 ]; then + fail "should fail if relative socket path is disabled" +fi + +stop_sshd + +start_sshd -o StreamLocalBin...