summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-04 11:47:15 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-04 11:47:15 +0000
commiteceef9d706a085e93980fed0bc92de770d092fc3 (patch)
tree13f198f1892d4aedf21f8b35a2ad97b1dc28ae79
parent280e8f9c8b7a8959dd246e9ced5259a4ee65a12f (diff)
Handle ^D as a)bort in log message question.
OK joris@
-rw-r--r--usr.bin/cvs/logmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index 8ea8a86a44d..8570bbe4953 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.42 2007/08/30 11:07:18 joris Exp $ */
+/* $OpenBSD: logmsg.c,v 1.43 2007/09/04 11:47:14 tobias Exp $ */
/*
* Copyright (c) 2007 Joris Vink <joris@openbsd.org>
*
@@ -170,7 +170,7 @@ cvs_logmsg_create(struct cvs_flisthead *added, struct cvs_flisthead *removed,
(void)fflush(stdout);
c = getc(stdin);
- if (c == 'a') {
+ if (c == EOF || c == 'a') {
fatal("Aborted by user");
} else if (c == '\n' || c == 'c') {
logmsg = xstrdup("");