From bb4d7a0e7ebcfcc14a3e692827d46fe64d8a69fb Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 6 Jan 2014 18:16:34 +0000 Subject: [PATCH] Don't allow backslash at EOF --- xargs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xargs.c b/xargs.c index 1bbf58c..800d4e8 100644 --- a/xargs.c +++ b/xargs.c @@ -168,7 +168,9 @@ parseescape(void) if ((ch = inputc()) != EOF) { fillbuf(ch); argbpos++; + return; } + enprintf(EXIT_FAILURE, "backslash at EOF\n"); } static char *