=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/commit.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/cvs/commit.c 2004/12/14 22:30:48 1.12 --- src/usr.bin/cvs/commit.c 2004/12/21 18:32:10 1.13 *************** *** 1,4 **** ! /* $OpenBSD: commit.c,v 1.12 2004/12/14 22:30:48 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: commit.c,v 1.13 2004/12/21 18:32:10 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 178,203 **** int cvs_commit_file(CVSFILE *cf, void *arg) { char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; RCSFILE *rf; struct cvsroot *root; struct cvs_ent *entp; rf = NULL; repo = NULL; root = CVS_DIR_ROOT(cf); if (cf->cf_type == DT_DIR) { ! if (cf->cf_cvstat != CVS_FST_UNKNOWN) { ! if ((cf->cf_parent != NULL) && ! (root != cf->cf_parent->cf_ddat->cd_root)) { ! cvs_connect(root); ! } ! ! cvs_senddir(root, cf); } ! return (0); } cvs_file_getpath(cf, fpath, sizeof(fpath)); --- 178,201 ---- int cvs_commit_file(CVSFILE *cf, void *arg) { + int ret; char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; RCSFILE *rf; struct cvsroot *root; struct cvs_ent *entp; + ret = 0; rf = NULL; repo = NULL; root = CVS_DIR_ROOT(cf); if (cf->cf_type == DT_DIR) { ! if (root->cr_method != CVS_METHOD_LOCAL) { ! if (cf->cf_cvstat != CVS_FST_UNKNOWN) ! ret = cvs_senddir(root, cf); } ! return (ret); } cvs_file_getpath(cf, fpath, sizeof(fpath));