]> Savannah Git Hosting - gnulib.git/commit
linkat: avoid OS X 10.10 trailing slash with symlink bug
authorPádraig Brady <P@draigBrady.com>
Fri, 29 May 2015 02:11:59 +0000 (03:11 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 29 May 2015 03:05:14 +0000 (04:05 +0100)
commitc79f3527498974c328404ed6807f9aaa5608832e
tree8d7beac69204f24c5f25f704aad1bfbd0987c4fc
parente176ee0b5d8e90b0d3871ee778d290bc3d6abe96
linkat: avoid OS X 10.10 trailing slash with symlink bug

On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
causes the symlink to be dereferenced, and if it points
to a non existent file, that file will be created as
a hard link to "path1".
This fixes a test failure in test-linkat.c.

* m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
this case.  The existing workaround in linkat.c for
trailing slash issues, suffices for this case.
* doc/posix-functions/linkat.texi: Add OS X 10.10 to
the list of platforms with trailing slash issues.
ChangeLog
doc/posix-functions/linkat.texi
m4/linkat.m4