]> git.eshelyaron.com Git - emacs.git/commit
Don't prevent random file systems from being unmounted.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)
commitf22bc725a1c8294fc042f6a9541be01a177755f6
treec54be44171d43157177e8879d5ec3d583edfe5a1
parentd5f2feb5818b9da8323bda683983fa7e637c47fd
Don't prevent random file systems from being unmounted.

This fix relies on having the 'fchdir' function, and on having
"." be searchable (or at least readable, on platforms lacking O_SEARCH),
but that's good enough to handle the vast majority of cases and the
remaining folks can just live with the annoyance of file systems
that occasionally can't be unmounted.
* configure.ac (fchdir): New function to check for.
* lib/save-cwd.c: Copy from gnulib, except omit the part that
allocates memory, since that can cause problems in Emacs.
* lib/save-cwd.h: Copy from gnulib.

Fixes: debbugs:18232
ChangeLog
configure.ac
lib/save-cwd.c
lib/save-cwd.h