diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-26 21:46:37 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-26 21:46:37 +0000 |
commit | f051f973747f726bbfef08b285cf15a832210342 (patch) | |
tree | c67827b65f250d47d0772528029771b3d2e60736 /usr.bin/cvs | |
parent | 00efa8caa08bfb6f5b14c5016e02c3a2b1cef050 (diff) |
don't append strerror(errno) to error messages if we use LP_ERRNO
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/buf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 324d5940c2c..2ae596a84be 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.9 2005/05/24 07:38:46 xsa Exp $ */ +/* $OpenBSD: buf.c,v 1.10 2005/05/26 21:46:36 jfb Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -417,8 +417,7 @@ cvs_buf_write(BUF *b, const char *path, mode_t mode) fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode); if (fd == -1) { - cvs_log(LP_ERRNO, "failed to open file `%s': %s", - path, strerror(errno)); + cvs_log(LP_ERRNO, "failed to open file `%s'", path); return (-1); } @@ -426,8 +425,7 @@ cvs_buf_write(BUF *b, const char *path, mode_t mode) ret = cvs_buf_write_fd(b, fd); if (ret == -1) { - cvs_log(LP_ERRNO, "failed to write to file `%s': %s", - path, strerror(errno)); + cvs_log(LP_ERRNO, "failed to write to file `%s'", path); (void)unlink(path); } (void)close(fd); |