=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/repository.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/cvs/repository.c 2010/07/23 08:31:19 1.23 --- src/usr.bin/cvs/repository.c 2015/01/16 06:40:07 1.24 *************** *** 1,4 **** ! /* $OpenBSD: repository.c,v 1.23 2010/07/23 08:31:19 ray Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: repository.c,v 1.24 2015/01/16 06:40:07 deraadt Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 30,36 **** void cvs_repository_unlock(const char *repo) { ! char fpath[MAXPATHLEN]; cvs_log(LP_TRACE, "cvs_repository_unlock(%s)", repo); --- 30,36 ---- void cvs_repository_unlock(const char *repo) { ! char fpath[PATH_MAX]; cvs_log(LP_TRACE, "cvs_repository_unlock(%s)", repo); *************** *** 46,52 **** int i; uid_t myuid; struct stat st; ! char fpath[MAXPATHLEN]; struct passwd *pw; if (cvs_noexec == 1 || cvs_readonlyfs == 1) --- 46,52 ---- int i; uid_t myuid; struct stat st; ! char fpath[PATH_MAX]; struct passwd *pw; if (cvs_noexec == 1 || cvs_readonlyfs == 1) *************** *** 102,108 **** DIR *dirp; struct stat st; struct dirent *dp; ! char *s, fpath[MAXPATHLEN], rpath[MAXPATHLEN]; if ((dirp = opendir(dir)) == NULL) fatal("cvs_repository_getdir: failed to open '%s'", dir); --- 102,108 ---- DIR *dirp; struct stat st; struct dirent *dp; ! char *s, fpath[PATH_MAX], rpath[PATH_MAX]; if ((dirp = opendir(dir)) == NULL) fatal("cvs_repository_getdir: failed to open '%s'", dir); *************** *** 113,120 **** !strcmp(dp->d_name, CVS_LOCK)) continue; ! (void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", wdir, dp->d_name); ! (void)xsnprintf(rpath, MAXPATHLEN, "%s/%s", dir, dp->d_name); if (!TAILQ_EMPTY(&checkout_ign_pats)) { if ((s = strrchr(fpath, ',')) != NULL) --- 113,120 ---- !strcmp(dp->d_name, CVS_LOCK)) continue; ! (void)xsnprintf(fpath, PATH_MAX, "%s/%s", wdir, dp->d_name); ! (void)xsnprintf(rpath, PATH_MAX, "%s/%s", dir, dp->d_name); if (!TAILQ_EMPTY(&checkout_ign_pats)) { if ((s = strrchr(fpath, ',')) != NULL)