summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/util.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-12-05 11:01:06 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-12-05 11:01:06 +0000
commit8ba3b4545db5c41892527843fd14e4366b8ede3a (patch)
tree248d0ce35a27ac6e64e6da87ca1c3773919065ce /usr.bin/cvs/util.c
parent50eb5159276a43b947584b81a20aea259a7a1f17 (diff)
rmdir(2) sets errno, use it for error message.
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r--usr.bin/cvs/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 3cb3309ad7c..eb05c8813ac 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.92 2006/11/28 14:49:58 xsa Exp $ */
+/* $OpenBSD: util.c,v 1.93 2006/12/05 11:01:05 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -497,7 +497,7 @@ cvs_rmdir(const char *path)
if (rmdir(path) == -1 && errno != ENOENT) {
- cvs_log(LP_ERR, "failed to remove '%s'", path);
+ cvs_log(LP_ERRNO, "%s", path);
goto done;
}