=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/ci.c,v retrieving revision 1.70 retrieving revision 1.71 diff -c -r1.70 -r1.71 *** src/usr.bin/rcs/ci.c 2005/11/27 16:15:26 1.70 --- src/usr.bin/rcs/ci.c 2005/11/27 17:47:18 1.71 *************** *** 1,4 **** ! /* $OpenBSD: ci.c,v 1.70 2005/11/27 16:15:26 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: ci.c,v 1.71 2005/11/27 17:47:18 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. *************** *** 234,249 **** * Test for existence of ,v file. If we are expected to * create one, set NEWFILE flag. */ ! if ((pb.openflags & RCS_CREATE) ! && (rcs_statfile(pb.filename, pb.fpath, ! sizeof(pb.fpath)) < 0)) { ! pb.flags |= NEWFILE; ! } else if (!(pb.openflags & RCS_CREATE) ! && (rcs_statfile(pb.filename, pb.fpath, ! sizeof(pb.fpath)) < 0)) { ! cvs_log(LP_ERR, "No existing RCS file"); ! status = 1; ! continue; } else { if (pb.flags & CI_INIT) { cvs_log(LP_ERR, "%s already exists", pb.fpath); --- 234,247 ---- * Test for existence of ,v file. If we are expected to * create one, set NEWFILE flag. */ ! if (rcs_statfile(pb.filename, pb.fpath, sizeof(pb.fpath)) < 0) { ! if (pb.openflags & RCS_CREATE) ! pb.flags |= NEWFILE; ! else { ! cvs_log(LP_ERR, "No existing RCS file"); ! status = 1; ! continue; ! } } else { if (pb.flags & CI_INIT) { cvs_log(LP_ERR, "%s already exists", pb.fpath);