[PATCH 2/2] faccessat: document AT_SYMLINK_NOFOLLOW issue

2017-07-27 Thread Paul Eggert
* doc/posix-functions/faccessat.texi: Modernize platform list. Document AT_SYMLINK_NOFOLLOW limitation. --- ChangeLog | 4 doc/posix-functions/faccessat.texi | 13 ++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog ind

[PATCH 1/2] renameat2: port to Solaris 10

2017-07-27 Thread Paul Eggert
* lib/renameat2.c (rename_noreplace): Use lstat, not faccessat with AT_SYMLINK_NOFOLLOW (which is not portable). (renameat): Undef before using, to avoid endless recursion when the replacement renameat calls renameat2 which calls the replacement renameat. (renameat2): Use lstatat, not faccessat wit

[PATCH] renameat2: new module

2017-07-27 Thread Paul Eggert
Although the Linux syscall renameat2 is not in glibc (yet?), it is useful to have access to its RENAME_NOREPLACE flag. * MODULES.html.sh (func_all_modules): Add renameat2. * lib/renameat2.c, lib/renameat2.h, modules/renameat2: * modules/renameat2-tests, tests/test-renameat2.c: New files. * lib/rena

Re: [PATCH] vc-list-files: Adjust the script to support git worktrees

2017-07-27 Thread Eric Blake
On 07/27/2017 06:47 AM, Erik Skultety wrote: > Git's worktree feature creates a ".git" which refers to references from > the original (main) repository. This makes vc-list-files to fail for > worktrees since it checks for both file's existence and the file being a > directory. Checking for existenc

[PATCH] vc-list-files: Adjust the script to support git worktrees

2017-07-27 Thread Erik Skultety
Git's worktree feature creates a ".git" which refers to references from the original (main) repository. This makes vc-list-files to fail for worktrees since it checks for both file's existence and the file being a directory. Checking for existence should be okay in this case, since the script doesn

Re: [PATCH] Improvements to relocatable

2017-07-27 Thread Reuben Thomas
On 26 July 2017 at 16:01, Reuben Thomas wrote: > As per various emails back in April, some improvements to relocatable. > > Patch 1 makes the default license in the files GPL, to avoid confusion; > Bruno agreed to this: http://lists.gnu.org/archive/html/bug-gnulib/2017- > 04/msg00013.html > > Pat