diff options
author | peter <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
commit | a037ef8f32200b26968e77344bcfb963251fa8b9 (patch) | |
tree | 2b4dc24b830b514680009ead3884ecb1c40974c7 /contrib/cvs/lib/rename.c | |
parent | 590c411955d6975551ffeaf41d7faf4b26f836d1 (diff) | |
download | FreeBSD-src-a037ef8f32200b26968e77344bcfb963251fa8b9.zip FreeBSD-src-a037ef8f32200b26968e77344bcfb963251fa8b9.tar.gz |
Import cvs-1.11.1p1 onto vendor branch
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; } } |