=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/resp.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/cvs/Attic/resp.c 2005/04/20 15:50:54 1.30 --- src/usr.bin/cvs/Attic/resp.c 2005/05/03 08:55:16 1.31 *************** *** 1,4 **** ! /* $OpenBSD: resp.c,v 1.30 2005/04/20 15:50:54 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: resp.c,v 1.31 2005/05/03 08:55:16 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 302,311 **** --- 302,319 ---- * cvs_resp_error() * * Handler for the `error' response. This handler's job is to + * show the error message given by the server. */ static int cvs_resp_error(struct cvsroot *root, int type, char *line) { + + /* XXX - GNU cvs sends an empty error message + * at the end of the diff command, even for successfull + * diff. + */ + if ((strlen(line) == 1) && (*line == ' ')) + return (1); fprintf(stderr, "%s\n", line); return (1);