diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-07-26 14:46:25 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-07-26 14:46:25 +0000 |
commit | 98e95aa7aaba3a21e83ed727fca3a8a0b96d94cd (patch) | |
tree | afbb3e9c7b36961ede7ee8c3b0a1392aad0cbc66 /usr.bin | |
parent | 46308243dc4f96678c7fae55921a1e35e06568f9 (diff) |
no need to complain that we cannot remove the file in cvs_unlink()
if it does not exist.
"commit it" xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 16d272630ff..73804ba8fb0 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.43 2005/07/25 13:37:53 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.44 2005/07/26 14:46:24 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -532,7 +532,7 @@ cvs_unlink(const char *path) if (cvs_noexec == 1) return (0); - if (unlink(path) == -1) { + if ((unlink(path) == -1) && (errno != ENOENT)) { cvs_log(LP_ERRNO, "cannot remove `%s'", path); return (-1); } |