From 079cae9d7628f16b9efdf5723d2bfae5bdc2ba4e Mon Sep 17 00:00:00 2001
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Tue, 27 Jan 2015 18:27:32 -0300
Subject: [PATCH] Make c_rehash match commands starting with - (minus) instead
of minus in any starting position, otherwise a directory named a-b breaks it
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 887e927..1df2fab 100644
@@ -15,7 +15,7 @@ my $symlink_exists=eval {symlink("",""); 1};
-while ( $ARGV[0] =~ '-.*' ) {
+while ( $ARGV[0] =~ '^-.*' ) {
last if ( $flag eq '--');