From cc4bc5ef2ca4fb7da7e30412a85eac0b19ba9d8b Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Sat, 25 Dec 2010 19:55:20 +0100 Subject: [PATCH] atb -> etb (escape tar bomb) --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index b6e32dc..1d4c083 100644 --- a/functions +++ b/functions @@ -23,7 +23,7 @@ tmuxhglog() { # Escape potential tarbombs # http://www.commandlinefu.com/commands/view/6824/escape-potential-tarbombs -atb() { +etb() { l=$(tar tf $1); if [ $(echo "$l" | wc -l) -eq $(echo "$l" | grep $(echo "$l" | head -n1) | wc -l) ]; then tar xf $1;