5 ms·
Wonder what would happen if you hid a symlink pointing to root as one of the files. Someone without a doubt would rm-rf.
by thisaccount 14y ago
Wonder what would happen if you hid a symlink pointing to root as one of the files. Someone without a doubt would rm-rf.
- bct 14y agorm -rf doesn't follow symlinks: /tmp $ mkdir -p a/b/c /tmp $ mkdir -p a/d/e /tmp $ cd a/b/c /tmp/a/b/c $ ln -s /tmp/a/d . /tmp/a/b/c $ cd ../../ /tmp/a $ ls */* b/c: d d/e: /tmp/a $ rm -rf b /tmp/a $ ls d It would be pretty stupid for it to.