commit | 22791083dab2de2b22154dd4e0e593ff6c48e08b | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Thu Jan 31 04:13:07 2013 -0600 |
committer | Rob Landley <rob@landley.net> | Thu Jan 31 04:13:07 2013 -0600 |
tree | c70bd416c9c2fe71ffae9ce9c81549fbda6ef94f | |
parent | c26ca6e71aaa70f0aedfabfa57e7c71d0d31fe92 [diff] |
Fix -in behavior: descend into existing directory without prompting, show full path in error messages, actually overwrite when answering yes to -i.
diff --git a/lib/lib.c b/lib/lib.c index 1defe1e..955f242 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -975,6 +975,7 @@ 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; }