=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/resp.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/cvs/Attic/resp.c 2004/08/03 05:08:45 1.2 --- src/usr.bin/cvs/Attic/resp.c 2004/08/06 20:16:52 1.3 *************** *** 1,4 **** ! /* $OpenBSD: resp.c,v 1.2 2004/08/03 05:08:45 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: resp.c,v 1.3 2004/08/06 20:16:52 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 321,327 **** int fd; char rpath[MAXPATHLEN], statpath[MAXPATHLEN]; ! cvs_getln(root, rpath, sizeof(rpath)); snprintf(statpath, sizeof(statpath), "%s/%s", line, CVS_PATH_STATICENTRIES); --- 321,329 ---- int fd; char rpath[MAXPATHLEN], statpath[MAXPATHLEN]; ! /* remote directory line */ ! if (cvs_getln(root, rpath, sizeof(rpath)) < 0) ! return (-1); snprintf(statpath, sizeof(statpath), "%s/%s", line, CVS_PATH_STATICENTRIES); *************** *** 335,342 **** else if (type == CVS_RESP_SETSTATDIR) { fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0400); if (fd == -1) { ! cvs_log(LP_ERRNO, "failed to create %s file", ! CVS_PATH_STATICENTRIES); return (-1); } (void)close(fd); --- 337,344 ---- else if (type == CVS_RESP_SETSTATDIR) { fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0400); if (fd == -1) { ! cvs_log(LP_ERRNO, ! "failed to set static directory on %s", line); return (-1); } (void)close(fd); *************** *** 607,617 **** static int cvs_resp_removed(struct cvsroot *root, int type, char *line) { ! char base[MAXPATHLEN], file[MAXNAMLEN]; CVSENTRIES *ef; ! cvs_splitpath(line, base, sizeof(base), file, sizeof(file)); ! ef = cvs_ent_open(base, O_RDWR); if (ef == NULL) return (-1); --- 609,618 ---- static int cvs_resp_removed(struct cvsroot *root, int type, char *line) { ! char base[MAXPATHLEN], *file; CVSENTRIES *ef; ! cvs_splitpath(line, base, sizeof(base), &file); ef = cvs_ent_open(base, O_RDWR); if (ef == NULL) return (-1);