diff options
author | Johannes Sixt <j6t@kdbg.org> | 2008-11-19 17:25:27 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-23 19:26:42 -0800 |
commit | 632f70178784291bd2974e07fdcd2b8e8608f252 (patch) | |
tree | f47e781f5332c4cca45dde264a4b700e0b53a2ee /git-cvsserver.perl | |
parent | request-pull: make usage string match manpage (diff) | |
download | tgif-632f70178784291bd2974e07fdcd2b8e8608f252.tar.xz |
compat/mingw.c: Teach mingw_rename() to replace read-only files
On POSIX, rename() can replace files that are not writable. On Windows,
however, read-only files cannot be replaced without additional efforts:
We have to make the destination writable first.
Since the situations where the destination is read-only are rare, we do not
make the destination writable on every invocation, but only if the first
try to rename a file failed with an "access denied" error.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsserver.perl')
0 files changed, 0 insertions, 0 deletions