🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1685

Re: Beware xargs security holes

#1685
From: Kim Christian Madsen
Date: Wed, 31 Oct 1990 23:31
14 lines
970 bytes
Just my $0.02 to the ongoing discussion of:

	find .... | xargs rm

If you're really worried about *NASTY* users and embedded newlines in files,
why use xargs at the receiving end of find, and not just settle with:

	find .... -exec /bin/rm {} \;

Yes I know that it spawns a lot of processes compared to the xargs solution,
but it is also a secure way of removal of files with embedded newlines.

					Kim Chr. Madsen
Technical Details
Message-ID: <1990Oct31.233124.8208@diku.dk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!kimcm
References: <1990Oct24.0100 <john.656921455@troch> <649@inews.intel.com> <653@inews.intel.com> <303@cadlab.sublink.ORG>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!kimcm
From: kimcm@diku.dk (Kim Christian Madsen)
Newsgroups: comp.unix.shell
Subject: Re: Beware xargs security holes
Message-ID: <1990Oct31.233124.8208@diku.dk>
Date: 31 Oct 90 23:31:24 GMT
References: <1990Oct24.0100 <john.656921455@troch> <649@inews.intel.com> <653@inews.intel.com> <303@cadlab.sublink.ORG>
Organization: Department Of Computer Science, University Of Copenhagen
Lines: 14