summaryrefslogtreecommitdiffstats
path: root/libgloss/debug.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-08-10 11:16:27 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-08-10 11:16:27 +0000
commit349fba0cb46c289bb8df73dff70e463e13be0b5b (patch)
treefc8272bbc39827f569f6a389b90d0d9df82d1577 /libgloss/debug.c
parenta680a5325833f7ac5c4ee2b272a6f529192ead54 (diff)
downloadcygnal-349fba0cb46c289bb8df73dff70e463e13be0b5b.tar.gz
cygnal-349fba0cb46c289bb8df73dff70e463e13be0b5b.tar.bz2
cygnal-349fba0cb46c289bb8df73dff70e463e13be0b5b.zip
* syscalls.cc (rename): Check oldpath and newpath for trailing dir
separators, require them to be existing directories if so. Check for a request to change only the case of the filename. Check paths for case insensitve equality only once. Handle renaming a directory to another, existing directory by unlinking the destination directory first. If newpath points to an existing file with R/O attribute set, try to unset R/O attribute first. Augment hardlink test by not checking directories. If renaming fails with STATUS_ACCESS_DENIED, try to unlink existing destination filename and try renaming again. Drop useless test for non-empty directory. Always close fh at the end of the function.
Diffstat (limited to 'libgloss/debug.c')
0 files changed, 0 insertions, 0 deletions