cernekee / ocproxy

OpenConnect proxy
Other
370 stars 41 forks source link

Reset current directory after entering namespace #8

Closed codido closed 7 years ago

codido commented 7 years ago

It can be useful to be in the same current directory vpnns was invoked from, for instance in invocations such as: vpnns scp -- foo user@server:

Get the current directory before entering the mount namespace and set it immediately after.

Signed-off-by: Ido Yariv ido@wizery.com