diff options
author | 2008-10-20 14:45:22 -0400 | |
---|---|---|
committer | 2008-10-20 18:44:13 +0000 | |
commit | 14121bdccc17b8c0e4368a9c0e4f82c3dd47f240 (patch) | |
tree | 78489a5a1bd99c542bd5f187c999e6be53691198 /lib/debugobjects.c | |
parent | [CIFS] fix build error (diff) | |
download | wireguard-linux-14121bdccc17b8c0e4368a9c0e4f82c3dd47f240.tar.xz wireguard-linux-14121bdccc17b8c0e4368a9c0e4f82c3dd47f240.zip |
cifs: make cifs_rename handle -EACCES errors
cifs: make cifs_rename handle -EACCES errors
Some servers seem to return -EACCES when attempting to rename one
open file on top of another. Refactor the cifs_rename logic to
attempt to rename the target file out of the way in this situation.
This also fixes the "unlink_target" logic to be undoable if the
subsequent rename fails.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions