=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.34 retrieving revision 1.35 diff -c -r1.34 -r1.35 *** src/usr.bin/cvs/entries.c 2005/05/31 08:58:47 1.34 --- src/usr.bin/cvs/entries.c 2005/06/02 20:19:30 1.35 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.34 2005/05/31 08:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.35 2005/06/02 20:19:30 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 64,74 **** memset(mode, 0, sizeof(mode)); len = cvs_path_cat(dir, CVS_PATH_ENTRIES, entpath, sizeof(entpath)); ! if (len >= sizeof(entpath)) { ! errno = ENAMETOOLONG; ! cvs_log(LP_ERRNO, "%s", entpath); return (NULL); - } switch (flags & O_ACCMODE) { case O_WRONLY: --- 64,71 ---- memset(mode, 0, sizeof(mode)); len = cvs_path_cat(dir, CVS_PATH_ENTRIES, entpath, sizeof(entpath)); ! if (len >= sizeof(entpath)) return (NULL); switch (flags & O_ACCMODE) { case O_WRONLY: