bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27986: 26.0.50; 'rename-file' can rename files without confirmation


From: Paul Eggert
Subject: bug#27986: 26.0.50; 'rename-file' can rename files without confirmation
Date: Sun, 13 Aug 2017 16:48:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Getting back to Philipp's original bug report, Apple documentation says macOS has a facility like the Linux renameat2 system call (i.e., it's like 'renameat' except it can be told to fail if the destination already exists). Attached is a proposed patch to use this facility, which means that the case-insensitivity test would no longer need to be done in macOS. If there's some way to implement renameat_noreplace on MS-Windows we could get rid of the case-insensitivity test there too.

I don't have easy access to macOS so I have not installed this patch. It'd be nice, Philipp, if you could try it out.

This patch is independent of the destination-directory patch that I recently proposed in:

https://bugs.gnu.org/27986#14

Attachment: 0001-Improve-rename-file-behavior-on-macOS.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]