diff options
Diffstat (limited to 'contrib/cvs/lib/rename.c')
-rw-r--r-- | contrib/cvs/lib/rename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cvs/lib/rename.c b/contrib/cvs/lib/rename.c index ae3d36e..8dc0239 100644 --- a/contrib/cvs/lib/rename.c +++ b/contrib/cvs/lib/rename.c @@ -37,7 +37,7 @@ rename (from, to) { /* We don't check existence_error because the systems which need it have rename(). */ - if (unlink (to) && errno != ENOENT) + if (CVS_UNLINK (to) && errno != ENOENT) return -1; if ((from_stats.st_mode & S_IFMT) == S_IFDIR) { @@ -72,7 +72,7 @@ rename (from, to) { /* We don't check existence_error because the systems which need it have rename(). */ - if (link (from, to) == 0 && (unlink (from) == 0 || errno == ENOENT)) + if (link (from, to) == 0 && (CVS_UNLINK (from) == 0 || errno == ENOENT)) return 0; } } |