=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/proto.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/cvs/Attic/proto.c 2004/07/13 22:02:40 1.1 +++ src/usr.bin/cvs/Attic/proto.c 2004/07/14 04:32:42 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: proto.c,v 1.1 2004/07/13 22:02:40 jfb Exp $ */ +/* $OpenBSD: proto.c,v 1.2 2004/07/14 04:32:42 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -585,11 +585,8 @@ struct cvs_ent *entp; CVSENTRIES *entfile; - if (cvs_splitpath(line, entbuf, sizeof(entbuf), NULL, 0) < 0) - return (-1); + snprintf(path, sizeof(path), "%s/" CVS_PATH_ENTRIES, line); - snprintf(path, sizeof(path), "%s/" CVS_PATH_ENTRIES, entbuf); - /* get the remote path */ cvs_client_getln(entbuf, sizeof(entbuf)); @@ -601,7 +598,7 @@ if (entp == NULL) return (-1); - entfile = cvs_ent_open(path); + entfile = cvs_ent_open(path, O_WRONLY); if (entfile == NULL) return (-1);