Xref: utzoo comp.unix.shell:509 alt.sources.d:943 Path: 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 >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