Beware xargs security holes

Keith Gabryelski ag at cbmvax.commodore.com
Mon Oct 22 13:26:29 AEST 1990


In article <1990Oct21.223729.10521 at chinet.chi.il.us> les at chinet.chi.il.us
(Leslie Mikesell) writes:
>[...] you can still get into trouble with a file named "-r" appearing
>at the front of an argument list that might also mention directories.

But this is easily taken care of by suppling `--' as the last argument
to rm (ie, find . -name '*.dvi' -print | xargs rm --)

Pax, Keith



More information about the Comp.unix.shell mailing list