Reply to post: Old News, but still a worry …

Oh SNAP! Old-school '80s Unix hack to smack OSX, iOS, Red Hat?

Mark Simon

Old News, but still a worry …

The referenced article in turned referred to this one:

http://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt

which was very helpful. The following article rubs it in:

http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html

I tried it myself with the following:

mkdir one; touch one/stuff; mkdir two; touch two/stuff; touch ./-rf

rm *

The trick, of course is in the ./ prefix, which allows you to get away with murder.

A solution:

yum install detox

detox -rv ./*

The other part of the solution is to filter all incoming file names.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon