-
Notifications
You must be signed in to change notification settings - Fork 496
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
sshfs hangs when the target directory matches $OLDPWD #206
Comments
That's probably because we first open the mountpoint and then fork SSH. So if the shell or ssh tries to access the mountpoint, everything hangs. |
Thank you for the report! Do you think you could work on this (or do you know someone who could)? SSHFS is a fully volunteer driven project. This means that new features and bugfixes are implemented only when someone has a personal interest in them and therefore also does the necessary |
This is probably a duplicate of #196 |
The easiest way to fix this particular issue would be to unset the environment variable |
If ssh is configured to use "Match exec" and the previous working directory is the mount point, then the shell (bash) hangs calling stat() on OLDPWD. Unset OLDPWD so that this doesn't happen. Fixes libfuse#206.
If ssh is configured to use "Match exec" and the previous working directory is the mount point, then the shell (bash) hangs calling stat() on OLDPWD. Unset OLDPWD so that this doesn't happen. Fixes #206.
Description
When
OLDPWD
(the shell variable containing the last visited directory) contains the path of the local directory we are trying to mount into, thensshfs
hangs in aread(2)
syscall.This happens quite often, to me at least.
Versions tested
Steps to reproduce
Debug info
debug output (
-d -f -s
)strace
log-strace-ok.txt
log-strace-fail.txt
gdb backtrace
I fear that one is not terribly helpful.
Reproducibility
Apparently it depends on the remote server. Although
sshfs
hangs with my serversrv
above, it does not with this other server:So it may be tied to some piece of configuration for SSH on my server
srv
. I may take time to investigate this later if necessary.The text was updated successfully, but these errors were encountered: