mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Avoid faccessat(..., AT_SYM_NOFOLLOW) with musl libc
See https://www.openwall.com/lists/musl/2014/09/25/1
This commit is contained in:
parent
d0b4508798
commit
d46918946f
|
@ -6932,7 +6932,7 @@ nochange:
|
|||
}
|
||||
|
||||
/* Check if another file with same name exists */
|
||||
if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) {
|
||||
if (fstatat(fd, tmp, &sb, AT_SYMLINK_NOFOLLOW) == 0) {
|
||||
if (sel == SEL_RENAME) {
|
||||
/* Overwrite file with same name? */
|
||||
if (!xconfirm(get_input(messages[MSG_OVERWRITE]))) {
|
||||
|
|
Loading…
Reference in a new issue