From 2259773a125dd72fdd56462d3d935c9adfaf3fd1 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 11 Aug 2018 11:13:34 +0000 Subject: [PATCH] printf: Fix \c in %b in printf builtin exiting the shell after r337458 SVN r337458 erroneously partially reverted r265885. This is immediately visible when running the Kyua/ATF tests for usr.bin/printf, which actually test sh's printf builtin. PR: 229641 --- usr.bin/printf/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 024c3f0df0be..94667f381a60 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -388,7 +388,7 @@ printf_doformat(char *fmt, int *rval) free(p); if (getout) - exit(*rval); + return (end_fmt); break; } case 'c': {