Beware xargs security holes
Steve Hayman
sahayman at iuvax.cs.indiana.edu
Wed Oct 10 00:30:35 AEST 1990
>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 at iuvax.cs.indiana.edu (812) 855-6984
NeXT Mail: sahayman at spurge.bloomington.in.us
More information about the Alt.sources.d
mailing list