fchdir: another mingw fix
authorEric Blake <ebb9@byu.net>
Thu, 24 Sep 2009 02:33:40 +0000 (20:33 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 24 Sep 2009 03:02:22 +0000 (21:02 -0600)
commit657fb89d3276465fcf756392f10aa268ca451136
tree8079881e2da0116e38824f0f3a933ffcfb723c88
parentb5eb8386645bf1bcfafa63c729ff9a86454def87
fchdir: another mingw fix

canonicalize_file_name does not understand drive letters or
backslash.  The only reason openat required it was to make
fchdir get the canonical name of a directory.  But we can do
the same trick with chdir and getcwd.  With this fix,
fchdir(open("..",O_RDONLY)) finally does the right thing on mingw.

* modules/fchdir (Depends-on): Drop canonicalize-lgpl.
* lib/fchdir.c (get_name): New helper method; skips canonicalize
on mingw (where it has not yet been ported), and make it optional
elsewhere.
(_gl_register_fd): Use it.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/fchdir.c
modules/fchdir