=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/client.c,v retrieving revision 1.33 retrieving revision 1.34 diff -c -r1.33 -r1.34 *** src/usr.bin/cvs/client.c 2006/12/15 13:12:14 1.33 --- src/usr.bin/cvs/client.c 2006/12/15 15:40:28 1.34 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.33 2006/12/15 13:12:14 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.34 2006/12/15 15:40:28 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 386,393 **** void cvs_client_senddir(const char *dir) { int nb; ! char *d, *date, *repo, *tag; d = NULL; --- 386,394 ---- void cvs_client_senddir(const char *dir) { + struct stat st; int nb; ! char *d, *date, *fpath, *repo, *tag; d = NULL; *************** *** 400,405 **** --- 401,416 ---- cvs_client_send_request("Directory %s\n%s", dir, repo); xfree(repo); + + fpath = xmalloc(MAXPATHLEN); + if (cvs_path_cat(dir, CVS_PATH_STATICENTRIES, fpath, MAXPATHLEN) >= + MAXPATHLEN) + fatal("cvs_client_senddir: truncation"); + + if (stat(fpath, &st) == 0 && (st.st_mode & (S_IRUSR|S_IRGRP|S_IROTH))) + cvs_client_send_request("Static-directory"); + + xfree(fpath); d = xstrdup(dir); cvs_parse_tagfile(d, &tag, &date, &nb);