From patchwork Mon Oct 12 21:54:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 53228 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9CM4EdE031270 for ; Mon, 12 Oct 2009 22:04:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933335AbZJLVxg (ORCPT ); Mon, 12 Oct 2009 17:53:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933336AbZJLVxg (ORCPT ); Mon, 12 Oct 2009 17:53:36 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:47647 "EHLO mail-ew0-f228.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933335AbZJLVxf (ORCPT ); Mon, 12 Oct 2009 17:53:35 -0400 Received: by ewy28 with SMTP id 28so3114011ewy.18 for ; Mon, 12 Oct 2009 14:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=TMcSRiNKZzkD/2mmZ96+Ffwrtoz4qgm3ePpvRSPJYjA=; b=MJzmNoo3NipXdrUMRSzpqbMvjy7tSvAyaIK3yrwoM9nGsx+1AjnArvPV6T873VLSt1 qg6C3e9SJfECuW4mscNIjQK3bF0tS1KIP7vsot0MytR9XS4bgkC1J0FZ7O6hUkw5KsQ0 CmjNo/z3zulOe+ostl4i7PnMCbRRZqXi2M7f0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Sqre107CDwiBAF5CIGMFQB1df5bKALUAqLa0NCum14yiSb4Ga8UwmMl4MyMakYki9p 5NmFYww1elsBiH4Np5T1ZAipkbDef0//E18fvC1hjmGXs6qA94e0BPZWTXbI/wGivwTL W0xhos+580SfUO2mT9CZJ2E2PqAh50es6TgwM= Received: by 10.211.128.17 with SMTP id f17mr7744948ebn.69.1255384377516; Mon, 12 Oct 2009 14:52:57 -0700 (PDT) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id 23sm1400514eya.10.2009.10.12.14.52.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 14:52:56 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id A597E12563; Mon, 12 Oct 2009 23:54:55 +0200 (IST) Date: Mon, 12 Oct 2009 23:54:55 +0200 From: Sasha Khapyorsky To: "Stan C. Smith" Cc: ofw@lists.openfabrics.org, "'linux-rdma'" Subject: Re: [PATCH] remove unnecessary leading '/' from filename Message-ID: <20091012215455.GK13830@me> References: <784A3771E5D143179461A7D5151AE78C@amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <784A3771E5D143179461A7D5151AE78C@amr.corp.intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/osm/opensm/osm_lid_mgr.c b/osm/opensm/osm_lid_mgr.c index 89adc48..bd5945f 100644 --- a/osm/opensm/osm_lid_mgr.c +++ b/osm/opensm/osm_lid_mgr.c @@ -282,7 +282,7 @@ osm_lid_mgr_init( p_mgr->p_req = p_req; /* we initialize and restore the db domain of guid to lid map */ - p_mgr->p_g2l = osm_db_domain_init(p_mgr->p_db, "guid2lid"); + p_mgr->p_g2l = osm_db_domain_init(p_mgr->p_db, "/guid2lid"); if (! p_mgr->p_g2l) { osm_log( p_mgr->p_log, OSM_LOG_ERROR, diff --git a/osm/opensm/osm_subnet.c b/osm/opensm/osm_subnet.c index 99e39aa..cbb3549 100644 --- a/osm/opensm/osm_subnet.c +++ b/osm/opensm/osm_subnet.c @@ -745,7 +745,7 @@ osm_subn_rescan_conf_file( 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) @@ -838,7 +838,7 @@ osm_subn_parse_conf_file( 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; @@ -1096,7 +1096,7 @@ osm_subn_write_conf_file( 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;