diff options
Diffstat (limited to 'source3/lib/doscalls.c')
-rw-r--r-- | source3/lib/doscalls.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/lib/doscalls.c b/source3/lib/doscalls.c index 031effcf52..9cdb476d3d 100644 --- a/source3/lib/doscalls.c +++ b/source3/lib/doscalls.c @@ -235,19 +235,11 @@ static int copy_reg(char *source, const char *dest) int dos_rename(char *from, char *to) { - int rcode; pstring zfrom, zto; pstrcpy (zfrom, dos_to_unix (from, False)); pstrcpy (zto, dos_to_unix (to, False)); - rcode = rename (zfrom, zto); - - if (errno == EXDEV) - { - /* Rename across filesystems needed. */ - rcode = copy_reg (zfrom, zto); - } - return rcode; + return file_rename(zfrom, zto); } /******************************************************************* |