[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: |
Eli Zaretskii |
Subject: |
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation |
Date: |
Mon, 14 Aug 2017 20:04:18 +0300 |
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Mon, 14 Aug 2017 16:58:04 +0000
> Cc: 27986@debbugs.gnu.org
>
> There's nothing easier than implementing renameat_noreplace on
> MS-Windows, since the underlying system call does that by default, and
> it's emulating the Posix behavior that requires complications.
>
> You might be able to eliminate these complications by calling MoveFileExW with
> MOVEFILE_REPLACE_EXISTING.
Thanks, but I see no need, because using that function doesn't solve
any problems we have (it isn't guaranteed to be atomic if the
destination exists), and adds new complexity (because it won't move
files across volumes, and because it didn't exist before XP). The
"complications" I mentioned above are already implemented and well
tested, so I see no point in eliminating them.
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Paul Eggert, 2017/08/13
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Eli Zaretskii, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Eli Zaretskii, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Philipp Stephani, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation,
Eli Zaretskii <=
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Philipp Stephani, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Paul Eggert, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Paul Eggert, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Eli Zaretskii, 2017/08/14
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Paul Eggert, 2017/08/15
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Eli Zaretskii, 2017/08/15
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Ken Brown, 2017/08/16
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Ken Brown, 2017/08/19
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Paul Eggert, 2017/08/19
bug#27986: 26.0.50; 'rename-file' can rename files without confirmation, Ken Brown, 2017/08/19