=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/buf.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/cvs/buf.c 2005/05/24 07:38:46 1.9 --- src/usr.bin/cvs/buf.c 2005/05/26 21:46:36 1.10 *************** *** 1,4 **** ! /* $OpenBSD: buf.c,v 1.9 2005/05/24 07:38:46 xsa Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: buf.c,v 1.10 2005/05/26 21:46:36 jfb Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau * All rights reserved. *************** *** 417,424 **** 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)); return (-1); } --- 417,423 ---- fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode); if (fd == -1) { ! cvs_log(LP_ERRNO, "failed to open file `%s'", path); return (-1); } *************** *** 426,433 **** ret = cvs_buf_write_fd(b, fd); if (ret == -1) { ! cvs_log(LP_ERRNO, "failed to write to file `%s': %s", ! path, strerror(errno)); (void)unlink(path); } (void)close(fd); --- 425,431 ---- ret = cvs_buf_write_fd(b, fd); if (ret == -1) { ! cvs_log(LP_ERRNO, "failed to write to file `%s'", path); (void)unlink(path); } (void)close(fd);