summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-28 08:49:26 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-28 08:49:26 +0000
commit325eb2df2572868493b077613b591a7ff2e7689a (patch)
treeb1047b45dc26a0fab59241390695426d9a4d4430
parentbbcff0fbaebbda154a6db9d17f2cd525c4b71f03 (diff)
consistency in error messages;
-rw-r--r--usr.bin/cvs/import.c4
-rw-r--r--usr.bin/cvs/repo.c6
-rw-r--r--usr.bin/cvs/resp.c4
-rw-r--r--usr.bin/rcs/ci.c5
4 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c
index 58d5936d9a9..39661d7febf 100644
--- a/usr.bin/cvs/import.c
+++ b/usr.bin/cvs/import.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: import.c,v 1.28 2005/11/24 11:17:15 xsa Exp $ */
+/* $OpenBSD: import.c,v 1.29 2005/11/28 08:49:25 xsa Exp $ */
/*
* Copyright (c) 2004 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -283,7 +283,7 @@ cvs_import_local(CVSFILE *cf, void *arg)
*/
if (dflag == 1) {
if (stat(fpath, &fst) == -1) {
- cvs_log(LP_ERRNO, "failed to stat %s", fpath);
+ cvs_log(LP_ERRNO, "failed to stat `%s'", fpath);
return (CVS_EX_DATA);
}
stamp = (time_t)fst.st_mtime;
diff --git a/usr.bin/cvs/repo.c b/usr.bin/cvs/repo.c
index 8f2d77e8e0d..a68c90dd9c5 100644
--- a/usr.bin/cvs/repo.c
+++ b/usr.bin/cvs/repo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: repo.c,v 1.9 2005/10/07 21:47:32 reyk Exp $ */
+/* $OpenBSD: repo.c,v 1.10 2005/11/28 08:49:25 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -62,7 +62,7 @@ cvs_repo_load(const char *base, int flags)
cvs_log(LP_DEBUG, "loading repository %s", base);
if (stat(base, &st) == -1) {
- cvs_log(LP_ERRNO, "failed to stat %s", base);
+ cvs_log(LP_ERRNO, "failed to stat `%s'", base);
return (NULL);
}
@@ -484,7 +484,7 @@ cvs_repo_loadrec(CVSREPO *repo, const char *path)
cvs_log(LP_NOTICE, "loading %s", path);
if (stat(path, &st) == -1) {
- cvs_log(LP_ERRNO, "failed to stat %s", path);
+ cvs_log(LP_ERRNO, "failed to stat `%s'", path);
return (NULL);
}
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c
index 06fabf277ce..71e7cfa0394 100644
--- a/usr.bin/cvs/resp.c
+++ b/usr.bin/cvs/resp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resp.c,v 1.61 2005/10/22 17:32:57 joris Exp $ */
+/* $OpenBSD: resp.c,v 1.62 2005/11/28 08:49:25 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -436,7 +436,7 @@ cvs_resp_createdir(char *line)
*/
if (stat(line, &st) == -1) {
if (errno != ENOENT) {
- cvs_log(LP_ERRNO, "failed to stat '%s'", line);
+ cvs_log(LP_ERRNO, "failed to stat `%s'", line);
return (-1);
}
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 6dc3c96b78f..0248b4c47de 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.71 2005/11/27 17:47:18 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.72 2005/11/28 08:49:25 xsa Exp $ */
/*
* Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -770,8 +770,7 @@ checkin_mtimedate(struct checkin_params *pb)
{
struct stat sb;
if (stat(pb->filename, &sb) != 0) {
- cvs_log(LP_ERRNO, "failed to stat: `%s'",
- pb->filename);
+ cvs_log(LP_ERRNO, "failed to stat `%s'", pb->filename);
rcs_close(pb->file);
return (-1);
}