]> Savannah Git Hosting - gnulib.git/commit
canonicalize-lgpl: fix AIX test failures
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Dec 2020 09:22:55 +0000 (01:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Dec 2020 09:39:46 +0000 (01:39 -0800)
commit8968aaa702c80a6d4c3af56e6892b5ad4359caf3
treefc200873aa9192807493cac76e0107ea7b1467a1
parent3a75362f0375f66ebe204c87313899ed81010731
canonicalize-lgpl: fix AIX test failures

This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
* lib/canonicalize-lgpl.c: Include sys/stat.h.
(__realpath): When testing a file name ending in '/', use stat
rather than readlink, so that it does the right thing on AIX.
* modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
ChangeLog
lib/canonicalize-lgpl.c
modules/canonicalize-lgpl