Fixed to use rename() for renaming files, not link()/unlink().
This commit is contained in:
parent
d6bd2c86bd
commit
75d10944b8
@ -10,8 +10,6 @@ int
|
|||||||
sys_rename(path1, path2)
|
sys_rename(path1, path2)
|
||||||
char *path1, *path2;
|
char *path1, *path2;
|
||||||
{
|
{
|
||||||
unlink(path2);
|
return rename(path1, path2) == 0;
|
||||||
return link(path1, path2) == 0 &&
|
|
||||||
unlink(path1) == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user