From 8ba3b4545db5c41892527843fd14e4366b8ede3a Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Tue, 5 Dec 2006 11:01:06 +0000 Subject: rmdir(2) sets errno, use it for error message. --- usr.bin/cvs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 * Copyright (c) 2005, 2006 Joris Vink @@ -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; } -- cgit v1.2.3