summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-01-18 09:26:20 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-01-18 09:26:20 +0000
commitf81940d7496e91addc247a6ceccc32f333b587cb (patch)
treee4bea1baecc4c3ab73977dec2fae1d6e8f12d3ba
parenta40c42adad8932b1ec6ea956caa5c8e07d62b7ec (diff)
more informative error msg.
-rw-r--r--usr.bin/cvs/update.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index e84aebfa696..43496486478 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.86 2007/01/17 17:54:50 joris Exp $ */
+/* $OpenBSD: update.c,v 1.87 2007/01/18 09:26:19 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -151,7 +151,8 @@ cvs_update_enterdir(struct cvs_file *cf)
if (cf->file_status == DIR_CREATE && build_dirs == 1) {
cvs_mkpath(cf->file_path);
if ((cf->fd = open(cf->file_path, O_RDONLY)) == -1)
- fatal("cvs_update_enterdir: %s", strerror(errno));
+ fatal("cvs_update_enterdir: `%s': %s",
+ cf->file_path, strerror(errno));
entry = xmalloc(CVS_ENT_MAXLINELEN);
l = snprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////",