summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-03-11 18:38:55 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-03-11 18:38:55 +0000
commitce47b51b27383b6e47666151d2b18039fd7953c9 (patch)
tree5b8023dbb4ed6bf8b20a0af76d0b27c5982d52f3
parentcecbe8303a0f65af1519d78468609401826727d1 (diff)
- reset NEWFILE flag on each iteration through main loop. this stops
strange things happening. - don't print "done" on error. ok joris@
-rw-r--r--usr.bin/rcs/ci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 77161f36092..9002f17f081 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.113 2006/03/10 11:51:19 xsa Exp $ */
+/* $OpenBSD: ci.c,v 1.114 2006/03/11 18:38:54 niallo Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -271,9 +271,12 @@ checkin_main(int argc, char **argv)
status = checkin_init(&pb);
else
status = checkin_update(&pb);
+
+ /* reset NEWFILE flag */
+ pb.flags &= ~NEWFILE;
}
- if (verbose == 1)
+ if ((verbose == 1) && (status == 0))
printf("done\n");
return (status);