summaryrefslogtreecommitdiffstats
path: root/Sshuttle VPN.app/Contents/Resources/stupid.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2011-01-22 16:52:07 -0800
committerAvery Pennarun <apenwarr@gmail.com>2011-01-22 16:52:07 -0800
commit34ea1ed8b7ec3188af378100dc43616e8d304856 (patch)
tree5ed2c48454902a95a95944fa4ba1e84e6811862e /Sshuttle VPN.app/Contents/Resources/stupid.py
MacOS precompiled app package for sshuttle-0.45sshuttle-0.45-macos-bin
Diffstat (limited to 'Sshuttle VPN.app/Contents/Resources/stupid.py')
-rw-r--r--Sshuttle VPN.app/Contents/Resources/stupid.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Sshuttle VPN.app/Contents/Resources/stupid.py b/Sshuttle VPN.app/Contents/Resources/stupid.py
new file mode 100644
index 0000000..fdb1e0b
--- /dev/null
+++ b/Sshuttle VPN.app/Contents/Resources/stupid.py
@@ -0,0 +1,14 @@
+import os
+
+pid = os.fork()
+if pid == 0:
+ # child
+ try:
+ os.setsid()
+ #os.execvp('sudo', ['sudo', 'SSH_ASKPASS=%s' % os.path.abspath('askpass.py'), 'ssh', 'afterlife', 'ls'])
+ os.execvp('ssh', ['ssh', 'afterlife', 'ls'])
+ finally:
+ os._exit(44)
+else:
+ # parent
+ os.wait()