summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-09-04 11:47:14 +0000
committertobias <tobias@openbsd.org>2007-09-04 11:47:14 +0000
commit7a2038a89c25daeb8ce10a605bd2784e6b653c28 (patch)
treea9b442e1a3561125fae675f652047b72beb98d7e /usr.bin/cvs/logmsg.c
parentmake ssh(1)'s ConnectTimeout option apply to both the TCP connection and (diff)
downloadwireguard-openbsd-7a2038a89c25daeb8ce10a605bd2784e6b653c28.tar.xz
wireguard-openbsd-7a2038a89c25daeb8ce10a605bd2784e6b653c28.zip
Handle ^D as a)bort in log message question.
OK joris@
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-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("");