My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: session name handling of slash chars
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by roger.da...@gmail.com, Apr 18, 2014
What steps will reproduce the problem?
1. convert windows .reg with session names with slashes ("server/tunnel")

What is the expected output? What do you see instead?
pwin2lin tried creating `mkdir sessions/server/tunnel` which was doomed.

What version of the product are you using? On what operating system?
5/28/2010

Please provide any additional information below.

replace slashes:

--- pwin2lin.pl.1	2010-06-23 03:44:38.000000000 +0200
+++ pwin2lin.pl	2014-04-18 18:24:24.268323312 +0200
@@ -79,6 +79,7 @@
     $i++;
     next if $hostname =~ m/^Default.+Settings$/; # Use Linux Defaults
     #print "$hostname\n";
+    $hostname =~ s~[/\/]~_~g;
     open HOST, ">$puttyPath/sessions/$hostname" or die $!; # Write out the session
     while(1) {
       chomp $lines[$i];



Apr 19, 2014
#1 roger.da...@gmail.com
tweaking the regexp could handle other unsafe characters

Powered by Google Project Hosting