1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00

Don't require the -n flag if -x is specified. This is consistent with

the manual page as well as xargs on other operating systems.
This commit is contained in:
millert 2002-02-18 18:22:54 +00:00
parent 2656bbc841
commit 39aee76eea

View File

@ -1,4 +1,4 @@
/* $OpenBSD: xargs.c,v 1.10 2002/02/16 21:27:59 millert Exp $ */
/* $OpenBSD: xargs.c,v 1.11 2002/02/18 18:22:54 millert Exp $ */
/* $NetBSD: xargs.c,v 1.7 1994/11/14 06:51:41 jtc Exp $ */
/*-
@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93";
#endif
static char rcsid[] = "$OpenBSD: xargs.c,v 1.10 2002/02/16 21:27:59 millert Exp $";
static char rcsid[] = "$OpenBSD: xargs.c,v 1.11 2002/02/18 18:22:54 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -126,9 +126,6 @@ main(argc, argv)
argc -= optind;
argv += optind;
if (xflag && !nflag)
usage();
/*
* Allocate pointers for the utility name, the utility arguments,
* the maximum arguments to be read from stdin and the trailing