From 22791083dab2de2b22154dd4e0e593ff6c48e08b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 31 Jan 2013 04:13:07 -0600 Subject: Fix -in behavior: descend into existing directory without prompting, show full path in error messages, actually overwrite when answering yes to -i. --- lib/lib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/lib.c b/lib/lib.c index 1defe1e4..955f2426 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -975,6 +975,7 @@ int yesno(char *prompt, int def) while (fread(&buf, 1, 1, stdin)) { int new; + // The letter changes the value, the newline (or space) returns it. if (isspace(buf)) break; if (-1 != (new = stridx("ny", tolower(buf)))) def = new; } -- cgit v1.2.3