diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-12-05 15:59:49 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-12-05 15:59:49 +0000 |
commit | 1c3f40b02eda9e4a451633ff903f75337be50d81 (patch) | |
tree | f8af482039591f69b91a8a84c8af0d0365bcc64e | |
parent | b54934720012c4f065af94644f14dda05804a447 (diff) |
unlink(2) sets errno, use it for error message.
-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 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 <jfb@openbsd.org> * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> @@ -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); } |