diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-09-09 17:23:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-09-09 17:23:22 +0000 |
commit | 2c6bddf6bdf0c17412724ddea9f4679c67baffe5 (patch) | |
tree | e556e40368d4db97c737ecf0c85ec589ec479f52 | |
parent | 86a77f400e0f765d67d9c12d41c18f3b41f54ceb (diff) |
feed the line after eof, make it behave like other utils we have; rees@ ok
-rw-r--r-- | usr.bin/sectok/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/sectok/main.c b/usr.bin/sectok/main.c index f743da9aa1b..89e009feb31 100644 --- a/usr.bin/sectok/main.c +++ b/usr.bin/sectok/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.4 2001/07/27 14:13:08 rees Exp $ */ +/* $Id: main.c,v 1.5 2001/09/09 17:23:21 mickey Exp $ */ /* * Smartcard commander. @@ -128,8 +128,10 @@ char *av[]; if (!fgets(buf, sizeof buf, cmdf)) { if (interrupted) continue; - else + else { + putchar('\n'); break; + } } if (cmdf != stdin) printf("sectok> %s", buf); |