Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix control socket listener (didn't chdir /) #239

Closed

Conversation

rafork
Copy link

@rafork rafork commented Mar 31, 2021

When a control socket is in use, the process inherits and retains the existing current working directory. This is a problem when it happens to be in the file system of a removeable storage device like a USB stick. Later, when the user tries to umount the removeable storage, it fails because an ssh process is still using it as a current working directory. The ssh process has to be identified and terminated before the removeable storage can be umounted. This patch adds chdir("/") at the end of muxserver_listen() in mux.c to solve this problem.

@rafork
Copy link
Author

rafork commented Apr 9, 2021

Replaced with a different pull request #243 with a different approach.

@rafork rafork closed this Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants