public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8558656
)
Fixed to use rename() for renaming files, not link()/unlink().
author
dtrg
<none@none>
Wed, 26 Jul 2006 12:40:25 +0000
(12:40 +0000)
committer
dtrg
<none@none>
Wed, 26 Jul 2006 12:40:25 +0000
(12:40 +0000)
modules/src/system/rename.c
patch
|
blob
|
history
diff --git
a/modules/src/system/rename.c
b/modules/src/system/rename.c
index
f653077
..
bc394be
100644
(file)
--- a/
modules/src/system/rename.c
+++ b/
modules/src/system/rename.c
@@
-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;
}