File: Improve-retry-prompt.patch

package info (click to toggle)
cron 3.0pl1-197
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,816 kB
  • sloc: ansic: 54,879; xml: 1,600; perl: 733; sh: 463; makefile: 446; python: 43
file content (25 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Christian Kastner <ckk@kvr.at>
Date: Fri, 25 Dec 2015 23:49:34 +0100
Subject: Improve retry prompt

Include y/n in the prompt to indicate the expected input.

Forwarded: no
Last-Update: 2015-12-25
---
 crontab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crontab.c b/crontab.c
index 015da98..0c9e2d9 100644
--- a/crontab.c
+++ b/crontab.c
@@ -638,7 +638,7 @@ again: /* Loop point for retrying edit after error */
 		break;
 	case -1:
 		for (;;) {
-			printf("Do you want to retry the same edit? ");
+			printf("Do you want to retry the same edit? (y/n) ");
 			fflush(stdout);
 			q[0] = '\0';
 			(void) fgets(q, sizeof q, stdin);