=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.36 retrieving revision 1.37 diff -c -r1.36 -r1.37 *** src/usr.bin/cvs/entries.c 2005/06/07 07:23:41 1.36 --- src/usr.bin/cvs/entries.c 2005/06/07 08:19:07 1.37 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.36 2005/06/07 07:23:41 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.37 2005/06/07 08:19:07 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 71,81 **** * update or checkout of a module. */ len = cvs_path_cat(dir, CVS_PATH_CVSDIR, cdpath, sizeof(cdpath)); ! if (len >= sizeof(cdpath)) { ! errno = ENAMETOOLONG; ! cvs_log(LP_ERRNO, "%s", cdpath); return (NULL); ! } if ((stat(cdpath, &st) == 0) && S_ISDIR(st.st_mode)) nodir = 0; /* the CVS/ directory does exist */ --- 71,79 ---- * update or checkout of a module. */ len = cvs_path_cat(dir, CVS_PATH_CVSDIR, cdpath, sizeof(cdpath)); ! if (len >= sizeof(cdpath)) return (NULL); ! if ((stat(cdpath, &st) == 0) && S_ISDIR(st.st_mode)) nodir = 0; /* the CVS/ directory does exist */