From 1c3f40b02eda9e4a451633ff903f75337be50d81 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Tue, 5 Dec 2006 15:59:49 +0000 Subject: unlink(2) sets errno, use it for error message. --- usr.bin/cvs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index eb05c8813ac..022c7311410 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.93 2006/12/05 11:01:05 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.94 2006/12/05 15:59:48 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink @@ -446,7 +446,7 @@ cvs_unlink(const char *path) return (0); if (unlink(path) == -1 && errno != ENOENT) { - cvs_log(LP_ERR, "cannot remove `%s'", path); + cvs_log(LP_ERRNO, "%s", path); return (-1); } -- cgit v1.2.3