summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-07-26 14:58:59 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-07-26 14:58:59 +0000
commitc58fc5031d57cd363a3794b6f68165abc42090d9 (patch)
treef917812cbee0d58ae6d663d819cf5e6ce0b1e46e /usr.bin/cvs
parent98e95aa7aaba3a21e83ed727fca3a8a0b96d94cd (diff)
remove the (errno != ENOENT) check now that it is included in cvs_unlink();
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/remove.c6
-rw-r--r--usr.bin/cvs/resp.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/remove.c b/usr.bin/cvs/remove.c
index 2dc2006882a..fd3afbdf432 100644
--- a/usr.bin/cvs/remove.c
+++ b/usr.bin/cvs/remove.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: remove.c,v 1.27 2005/07/25 20:15:35 xsa Exp $ */
+/* $OpenBSD: remove.c,v 1.28 2005/07/26 14:58:58 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2004, 2005 Xavier Santolaria <xsa@openbsd.org>
@@ -177,7 +177,7 @@ cvs_remove_local(CVSFILE *cf, void *arg)
cvs_log(LP_ERRNO, "%s", buf);
return (CVS_EX_DATA);
}
- if ((cvs_unlink(buf) == -1) && (errno != ENOENT))
+ if (cvs_unlink(buf) == -1)
return (CVS_EX_FILE);
if (verbosity > 1)
@@ -226,7 +226,7 @@ int cvs_remove_file(const char *fpath)
{
/* if -f option is used, physically remove the file */
if (force_remove == 1) {
- if((cvs_unlink(fpath) == -1) && (errno != ENOENT))
+ if(cvs_unlink(fpath) == -1)
return (-1);
nuked++;
}
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c
index e36b72b2be1..ee9885a96f6 100644
--- a/usr.bin/cvs/resp.c
+++ b/usr.bin/cvs/resp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resp.c,v 1.50 2005/07/25 12:05:43 xsa Exp $ */
+/* $OpenBSD: resp.c,v 1.51 2005/07/26 14:58:58 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -368,7 +368,7 @@ cvs_resp_statdir(struct cvsroot *root, int type, char *line)
if (cvs_noexec == 0) {
if ((type == CVS_RESP_CLRSTATDIR) &&
- (cvs_unlink(statpath) == -1) && (errno != ENOENT)) {
+ (cvs_unlink(statpath) == -1)) {
return (-1);
} else if (type == CVS_RESP_SETSTATDIR) {
fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0644);