=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/repo.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/cvs/Attic/repo.c 2005/02/16 15:41:15 1.1 --- src/usr.bin/cvs/Attic/repo.c 2005/04/15 08:23:17 1.2 *************** *** 1,4 **** ! /* $OpenBSD: repo.c,v 1.1 2005/02/16 15:41:15 jfb Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: repo.c,v 1.2 2005/04/15 08:23:17 xsa Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. *************** *** 366,372 **** CVSRPENT *sf, *cf; if ((len = strlcpy(pbuf, path, sizeof(pbuf))) >= sizeof(pbuf)) { ! cvs_log(LP_ERR, "path %s too long", path); return (NULL); } --- 366,373 ---- CVSRPENT *sf, *cf; if ((len = strlcpy(pbuf, path, sizeof(pbuf))) >= sizeof(pbuf)) { ! errno = ENAMETOOLONG; ! cvs_log(LP_ERRNO, "%s", path); return (NULL); } *************** *** 378,385 **** pp = pbuf; do { if (cf->cr_type != CVS_RPENT_DIR) { ! cvs_log(LP_ERR, ! "part of the path %s is not a directory", path); return (NULL); } sp = strchr(pp, '/'); --- 379,386 ---- pp = pbuf; do { if (cf->cr_type != CVS_RPENT_DIR) { ! errno = ENOTDIR; ! cvs_log(LP_ERRNO, "%s", path); return (NULL); } sp = strchr(pp, '/');