Remove unneccessary slash in file name. The slash exists in the default directory...
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 17 Oct 2005 10:17:00 +0000 (10:17 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 17 Oct 2005 10:17:00 +0000 (10:17 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@122 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/opensm/user/opensm/osm_subnet.c

index 9799d98..d0de277 100644 (file)
@@ -614,7 +614,7 @@ osm_subn_parse_conf_file(
   if (! p_cache_dir) p_cache_dir = OSM_DEFAULT_CACHE_DIR;
 
   strcpy(file_name, p_cache_dir);
-  strcat(file_name,"/opensm.opts");
+  strcat(file_name,"opensm.opts");
   
   opts_file = fopen(file_name, "r");
   if (!opts_file) return;
@@ -782,7 +782,7 @@ osm_subn_write_conf_file(
   if (! p_cache_dir) p_cache_dir = OSM_DEFAULT_CACHE_DIR;
 
   strcpy(file_name, p_cache_dir);
-  strcat(file_name,"/opensm.opts");
+  strcat(file_name,"opensm.opts");
   
   opts_file = fopen(file_name, "w");
   if (!opts_file) return;