diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-03 16:30:08 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-03 16:31:02 +0200 |
| commit | d3ee957ac0685e3d0875bc2030302593bd414c87 (patch) | |
| tree | f56ac854d13ea8f4d87d08ea8e6d2db396c8cdf4 /example | |
| parent | cd219843154d1140e496d941052ebb46ffb78df5 (diff) | |
| download | socket_wrapper-d3ee957ac0685e3d0875bc2030302593bd414c87.tar.gz socket_wrapper-d3ee957ac0685e3d0875bc2030302593bd414c87.tar.xz socket_wrapper-d3ee957ac0685e3d0875bc2030302593bd414c87.zip | |
example: Add OSX variables for preloading.
Diffstat (limited to 'example')
| -rwxr-xr-x | example/openssh.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/openssh.sh b/example/openssh.sh index d177fd8..7bf3350 100755 --- a/example/openssh.sh +++ b/example/openssh.sh @@ -54,13 +54,13 @@ export SOCKET_WRAPPER_DEFAULT_IFACE=11 echo echo "Starting SSHD with SOCKET_WRAPPER_DIR=${SSH_DIRECTORY}/swrap ..." -LD_PRELOAD=libsocket_wrapper.so /usr/sbin/sshd -f ${SSH_DIRECTORY}/sshd_config -e 2> ${SSH_DIRECTORY}/sshd_log || cleanup_and_exit 1 +DYLD_INSERT_LIBRARIES=libsocket_wrapper.dylib LD_PRELOAD=libsocket_wrapper.so /usr/sbin/sshd -f ${SSH_DIRECTORY}/sshd_config -e 2> ${SSH_DIRECTORY}/sshd_log || cleanup_and_exit 1 echo "done" echo echo "Connecting to the ${SERVER_ADDRESS} ssh server using ssh binary." echo "You can check the sshd log file at ${SSH_DIRECTORY}/sshd_log." echo "If you logout sshd will be stopped and the environment cleaned up." -LD_PRELOAD=libsocket_wrapper.so ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${SERVER_ADDRESS} +DYLD_INSERT_LIBRARIES=libsocket_wrapper.dylib LD_PRELOAD=libsocket_wrapper.so ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${SERVER_ADDRESS} cleanup_and_exit 0 |
