From: Ben Gras Date: Sun, 26 Mar 2006 17:44:29 +0000 (+0000) Subject: Can't exec() with long arguments - slightly reduce default nargs under X-Git-Tag: v3.1.2a~132 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/style.css?a=commitdiff_plain;h=27c0f507f9f38cff2c017d522d84f2f3f53f0f25;p=minix.git Can't exec() with long arguments - slightly reduce default nargs under regular minix. --- diff --git a/commands/simple/xargs.c b/commands/simple/xargs.c index 5f77ade91..ac1a0eaa9 100755 --- a/commands/simple/xargs.c +++ b/commands/simple/xargs.c @@ -97,7 +97,7 @@ int main(int argc, char **argv) nline = ARG_MAX - 4 * 1024; #else /* Things are more cramped under standard Minix. */ - nargs = 100 * sizeof(int); + nargs = 80 * sizeof(int); nline = ARG_MAX - 512 * sizeof(int); #endif nflag = xflag = zflag = 0; @@ -354,7 +354,7 @@ void run(char **argv) execvp(argv[0], argv); noinvoke = (errno == ENOENT) ? 127 : 126; (void)fprintf(stderr, - "xargs: %s: %s.\n", argv[0], strerror(errno)); + "xargs: %s exec failed: %s.\n", argv[0], strerror(errno)); /* Modern way of returning noinvoke instead of a dirty vfork() * trick: (kjb)