Fixed to use rename() for renaming files, not link()/unlink().

This commit is contained in:
dtrg 2006-07-26 12:40:25 +00:00
parent 8558656665
commit 3494ffb302

View file

@ -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;
}