diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-03-07 19:17:58 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-03-07 19:17:58 +0000 |
commit | 9aeb6657aa4e3221af6268cee826d51259d02a8d (patch) | |
tree | 8dc91d0daabd3d71c07e3a596566a1b7d26f6e5a /usr.bin/cvs/rcs.c | |
parent | 8213eec711bdd69c48b62c3a1a9e51bbbdbb6243 (diff) |
in rcs_write() only do stuff when the RCS file ondisk isn't synced;
niallo agrees;
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index c071c5eb9a4..9eb9f420e10 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.136 2006/03/07 16:48:53 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.137 2006/03/07 19:17:57 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -419,12 +419,12 @@ rcs_write(RCSFILE *rfp) from_fd = to_fd = fd = -1; - /* Write operations need the whole file parsed */ - rcs_parse_deltatexts(rfp, NULL); - if (rfp->rf_flags & RCS_SYNCED) return (0); + /* Write operations need the whole file parsed */ + rcs_parse_deltatexts(rfp, NULL); + strlcpy(fn, "/tmp/rcs.XXXXXXXXXX", sizeof(fn)); if ((fd = mkstemp(fn)) == -1) fatal("mkstemp: `%s': %s", fn, strerror(errno)); |