]> sourceware.org Git - systemtap.git/commitdiff
Take care when echoing something that could start with a -.
authorDave Brolley <brolley@redhat.com>
Thu, 7 Jan 2010 22:10:30 +0000 (17:10 -0500)
committerDave Brolley <brolley@redhat.com>
Thu, 7 Jan 2010 22:10:30 +0000 (17:10 -0500)
stap-client

index a3b37e68004731836300801fef7c64a7676949fd..869bff42697154693af7341ad58a2d67d85de728 100755 (executable)
@@ -449,7 +449,7 @@ function include_file_or_directory {
 # client's temporary directory.
 function generate_client_temp_name {
     # Transform the name into a fully qualified path name
-    local full_name=`echo "$1" | sed "s,^\\\([^/]\\\),$wd/\\\\1,"`
+    local full_name=`echo "X$1" | sed "s,^X\\\([^/]\\\),$wd/\\\\1," | sed 's,^X,,'`
 
     # The same name without the initial / or trailing /
     local local_name=`echo "$full_name" | sed 's,^/\(.*\),\1,'`
This page took 0.02634 seconds and 5 git commands to generate.