Explorar el Código

just use links leaf() for releative URL

[SVN r17822]
Beman Dawes hace 23 años
padre
commit
42ae4906fa
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      tools/regression/compiler_status.cpp

+ 4 - 3
tools/regression/compiler_status.cpp

@@ -610,11 +610,12 @@ int cpp_main( int argc, char * argv[] ) // note name!
 
 
   if ( argc == 4 )
   if ( argc == 4 )
   {
   {
-    links_name = argv[3];
-    links_file.open( fs::path( links_name, fs::native ) );
+    fs::path links_path( argv[3], fs::native );
+    links_name = links_path.leaf();
+    links_file.open( links_path );
     if ( !links_file )
     if ( !links_file )
     {
     {
-      std::cerr << "Could not open links output file: " << links_name << std::endl;
+      std::cerr << "Could not open links output file: " << argv[3] << std::endl;
       return 1;
       return 1;
     }
     }
   }
   }

粤ICP备19079148号