summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-07-24 17:33:09 +0000
committerxsa <xsa@openbsd.org>2005-07-24 17:33:09 +0000
commit824788fc580c9f9fee5ef187f56998e74193c8fc (patch)
tree5e18700121bedbf55dd6a1d6b099b2b92cef28c1
parentuse cvs_unlink(); (diff)
downloadwireguard-openbsd-824788fc580c9f9fee5ef187f56998e74193c8fc.tar.xz
wireguard-openbsd-824788fc580c9f9fee5ef187f56998e74193c8fc.zip
use cvs_unlink() here too;
-rw-r--r--usr.bin/cvs/util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 8dcc3aa30ff..fb5eb782cc9 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.40 2005/07/24 17:12:25 xsa Exp $ */
+/* $OpenBSD: util.c,v 1.41 2005/07/24 17:33:09 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -572,10 +572,8 @@ cvs_remove_dir(const char *path)
if (ent->d_type == DT_DIR) {
if (cvs_remove_dir(fpath) == -1)
goto done;
- } else if ((unlink(fpath) == -1) && (errno != ENOENT)) {
- cvs_log(LP_ERRNO, "failed to remove '%s'", fpath);
+ } else if ((cvs_unlink(fpath) == -1) && (errno != ENOENT))
goto done;
- }
}