🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1370

Re: Beware xargs security holes

#1370
From: Steve Hayman
Date: Tue, 09 Oct 1990 14:30
17 lines
1104 bytes
>Yeah. xargs should have a -0 option for taking null-separated filenames
>for its input. find should have a -print0 option for producing similar
>output.

So long as you have to modify "find" anyway to solve this problem, why
not just add "-xargs" option to "find", that would be like the "-exec"
option only using as many file names as possible at once.

	find .... -xargs rm {} \;

Seems simpler than modifying two programs.

Steve
-- 
Steve Hayman    Workstation Manager    Computer Science Department   Indiana U.
sahayman@iuvax.cs.indiana.edu                                    (812) 855-6984
NeXT Mail: sahayman@spurge.bloomington.in.us
Technical Details
Message-ID: <63404@iuvax.cs.indiana.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!world!decwrl!purdue!iuvax!sahayman
References: <1990Oct9.060954.25690@watcgl.waterloo.edu> <9365:Oct910:43:4590@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!world!decwrl!purdue!iuvax!sahayman
From: sahayman@iuvax.cs.indiana.edu (Steve Hayman)
Newsgroups: comp.unix.shell,alt.sources.d
Subject: Re: Beware xargs security holes
Message-ID: <63404@iuvax.cs.indiana.edu>
Date: 9 Oct 90 14:30:35 GMT
References: <1990Oct9.060954.25690@watcgl.waterloo.edu> <9365:Oct910:43:4590@kramden.acf.nyu.edu>
Organization: Computer Science Department, Indiana University
Lines: 17