Fixed to use rename() for renaming files, not link()/unlink().
This commit is contained in:
parent
8558656665
commit
3494ffb302
|
@ -10,8 +10,6 @@ int
|
|||
sys_rename(path1, path2)
|
||||
char *path1, *path2;
|
||||
{
|
||||
unlink(path2);
|
||||
return link(path1, path2) == 0 &&
|
||||
unlink(path1) == 0;
|
||||
return rename(path1, path2) == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue