Re: [PATCH] Save/restore CWD more reliably on Unix

2019-03-12 Thread Daniel Kiper
On Sat, Mar 09, 2019 at 02:37:17PM +, Colin Watson wrote: > Various GRUB utilities fail if the current directory doesn't exist, > because grub_find_device chdirs to a different directory and then fails > when trying to chdir back. Gnulib's save-cwd module uses fchdir instead > when it can, avo

[PATCH] Save/restore CWD more reliably on Unix

2019-03-09 Thread Colin Watson
Various GRUB utilities fail if the current directory doesn't exist, because grub_find_device chdirs to a different directory and then fails when trying to chdir back. Gnulib's save-cwd module uses fchdir instead when it can, avoiding this category of problem. Fixes Debian bug #918700. Signed-off