From eceef9d706a085e93980fed0bc92de770d092fc3 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Tue, 4 Sep 2007 11:47:15 +0000 Subject: Handle ^D as a)bort in log message question. OK joris@ --- usr.bin/cvs/logmsg.c | 4 ++-- 1 file 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 * @@ -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(""); -- cgit v1.2.3