ecryptfs-users team mailing list archive
-
ecryptfs-users team
-
Mailing list archive
-
Message #00074
Re: Strange getcwd() behaviour
Quoting Alberto Bertogli (albertito@xxxxxxxxxxxxxx):
> > After discussing it with her, we came up with the following scenario that
> > seems to cause the problem:
> >
> > 1. She launches a screen session
> > 2. She logs off (her X session), leaving the screen detached
> > 3. She logs back in
> > 4. She re-attaches the screen, creates a new terminal, and it's broken.
> >
> > That reliably reproduces the problem.
> >
> > If the ecryptfs mount is automatically unmounted after 2, the working
> > directory of screen disappears and causes it to break. A "cd" fixes it because
> > it changes the working directory to her home, which is the new mount point.
> >
> > What we are not sure is that if the semantics for the broken shell are
> > correct (i.e. consistant with the dissapearance of the underlying working
> > directory).
Yes, bc the directory itself actually stays around as it was lazily
unmounted. It was just disconnected from its mountpoint.
-serge
References