]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
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@122 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/opensm/user/opensm/osm_subnet.c

index 9799d9857ab1713cbb922e60ecf612ada908ae9b..d0de277df035eea44474206a96fc560ad13e16f7 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;