|
|
@ -194,7 +194,7 @@ int mufs_rename(struct mufs *fs, const char *old, const char *new) |
|
|
|
free(path); |
|
|
|
free(path); |
|
|
|
|
|
|
|
|
|
|
|
if (ret < 0) |
|
|
|
if (ret < 0) |
|
|
|
return -1; |
|
|
|
goto err_del_subtree; |
|
|
|
|
|
|
|
|
|
|
|
type = stat.type; |
|
|
|
type = stat.type; |
|
|
|
|
|
|
|
|
|
|
@ -204,6 +204,7 @@ int mufs_rename(struct mufs *fs, const char *old, const char *new) |
|
|
|
if (mufs_rmpath(fs, old) < 0) |
|
|
|
if (mufs_rmpath(fs, old) < 0) |
|
|
|
goto err_del_subtree; |
|
|
|
goto err_del_subtree; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mufs_del_tree(subtree); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
err_del_subtree: |
|
|
|
err_del_subtree: |
|
|
|