summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/root.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index e9dc8db2bfe..78ffd0950c6 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.16 2005/04/16 19:05:02 xsa Exp $ */
+/* $OpenBSD: root.c,v 1.17 2005/05/20 19:37:39 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -284,13 +284,15 @@ cvsroot_get(const char *dir)
else
return (NULL);
} else {
- cvs_log(LP_ERRNO, "failed to open CVS/Root");
+ cvs_log(LP_ERRNO, "failed to open %s",
+ CVS_PATH_ROOTSPEC);
return (NULL);
}
}
if (fgets(line, sizeof(line), fp) == NULL) {
- cvs_log(LP_ERR, "failed to read CVSROOT line from CVS/Root");
+ cvs_log(LP_ERR, "failed to read CVSROOT line from %s",
+ CVS_PATH_ROOTSPEC);
(void)fclose(fp);
return (NULL);
}
@@ -298,7 +300,7 @@ cvsroot_get(const char *dir)
len = strlen(line);
if (len == 0)
- cvs_log(LP_WARN, "empty CVS/Root file");
+ cvs_log(LP_WARN, "empty %s file", CVS_PATH_ROOTSPEC);
else if (line[len - 1] == '\n')
line[--len] = '\0';