[Git-commits] [grml/grml-etc-core] ef0f24: Weed out non-existing directories when loading DIR...
Frank Terbeck
ft at grml.org
Fri Jun 26 11:53:05 CEST 2015
Branch: refs/heads/master
Home: https://github.com/grml/grml-etc-core
Commit: ef0f2491f306bf6ca59090f9ef68e7f7a8420461
https://github.com/grml/grml-etc-core/commit/ef0f2491f306bf6ca59090f9ef68e7f7a8420461
Author: Frank Terbeck <ft at grml.org>
Date: 2015-06-26 (Fri, 26 Jun 2015)
Changed paths:
M etc/zsh/zshrc
Log Message:
-----------
Weed out non-existing directories when loading DIRSTACKFILE
Between saving our persistent dirstack file and loading it in the next
session, directories of which the names we saved might have ceased to
exist. This can cause problems, when the first entry from the saved
dirstack points to a non-existing directory.
Ordinarily, that would not be catastrophic and only lead to an error
message while loading the setup. But if you throw auto-mounters into the
mix, this can cause the setup to hang until the auto-mounter runs into a
timeout.
The proposed fix is to filter out names of non-existing directories
while loading the saved dirstack file.
This leaves the window between loading the file and trying to change to
the first then-existing directory of the file open for the directory to
vanish. That would be tough luck, I guess.
Reported-by: Till Hofmann <hofmanntill at gmail.com>
Signed-off-by: Frank Terbeck <ft at grml.org>
More information about the Git-commits
mailing list