1933 |
|
|
1934 |
|
// Rename item |
1935 |
|
D(bug(" renaming %s -> %s\n", old_path, full_path)); |
1936 |
< |
if (rename(old_path, full_path) < 0) |
1936 |
> |
if (!extfs_rename(old_path, full_path)) |
1937 |
|
return errno2oserr(); |
1938 |
|
else { |
1939 |
|
// The ID of the old file/dir has to stay the same, so we swap the IDs of the FSItems |
1976 |
|
|
1977 |
|
// Move item |
1978 |
|
D(bug(" moving %s -> %s\n", old_path, full_path)); |
1979 |
< |
if (rename(old_path, full_path) < 0) |
1979 |
> |
if (!extfs_rename(old_path, full_path)) |
1980 |
|
return errno2oserr(); |
1981 |
|
else { |
1982 |
|
// The ID of the old file/dir has to stay the same, so we swap the IDs of the FSItems |