Article View: comp.unix.shell
Article #1637Re: Beware xargs security holes
From: Blair P. Houghton
Date: Sat, 27 Oct 1990 16:57
Date: Sat, 27 Oct 1990 16:57
18 lines
1047 bytes
1047 bytes
In article <649@inews.intel.com> bhoughto@cmdnfs.intel.com (Blair P. Houghton) writes: >In article <john.656921455@troch> john@sco.COM (John R. MacMillan) writes: >> >>find / -name '#*' -print | xargs patok '.*/#[^/]*' rm -f -- >> >>where patok elimnates arguments that don't match the pattern. >>[patok] shouldn't be too hard to write. > >find / -name '#*' -print | egrep -v '.*/#[^/]*' | xargs rm -f -- Lose the -v, dimwit. > "Took longer to type." --Blair "Egotistical, overreaching, pretentious, typographically unsound geek!"
Technical Details
Message-ID:
<653@inews.intel.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!olivea!orc!inews!cmdnfs!bhoughtoReferences:
<1990Oct24.0100 <john.656921455@troch> <649@inews.intel.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!olivea!orc!inews!cmdnfs!bhoughto From: bhoughto@cmdnfs.intel.com (Blair P. Houghton) Newsgroups: comp.unix.shell Subject: Re: Beware xargs security holes Summary: I flame myself Message-ID: <653@inews.intel.com> Date: 27 Oct 90 16:57:35 GMT References: <1990Oct24.0100 <john.656921455@troch> <649@inews.intel.com> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 18