From patchwork Tue Dec 13 22:52:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 131212 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "acsinet15.oracle.com", Issuer "Oracle SSL CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 8FA231007D3 for ; Wed, 14 Dec 2011 09:53:00 +1100 (EST) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBDMqsqF007862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Dec 2011 22:52:55 GMT Received: from oss.oracle.com (oss.oracle.com [141.146.12.120]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pBDMqsLX012845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Dec 2011 22:52:54 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RabDN-00062e-7G; Tue, 13 Dec 2011 14:52:49 -0800 Received: from acsinet13.oracle.com ([141.146.126.235]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RabDM-00062X-0x for fedfs-utils-devel@oss.oracle.com; Tue, 13 Dec 2011 14:52:48 -0800 Received: from mail-vx0-f171.google.com (mail-vx0-f171.google.com [209.85.220.171]) by acsinet13.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBDMov1J021828 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Tue, 13 Dec 2011 22:52:47 GMT Received: by mail-vx0-f171.google.com with SMTP id fo1so205521vcb.2 for ; Tue, 13 Dec 2011 14:52:47 -0800 (PST) Received: by 10.220.230.132 with SMTP id jm4mr3011919vcb.15.1323816767525; Tue, 13 Dec 2011 14:52:47 -0800 (PST) Received: from degas.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id em10sm542607vdc.6.2011.12.13.14.52.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Dec 2011 14:52:46 -0800 (PST) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Tue, 13 Dec 2011 17:52:45 -0500 Message-ID: <20111213225245.15402.64916.stgit@degas.1015granger.net> In-Reply-To: <20111213224842.15402.340.stgit@degas.1015granger.net> References: <20111213224842.15402.340.stgit@degas.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=ISPs ip=209.85.220.171 ct-class=G1 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=0 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=1048 Subject: [fedfs-utils] [PATCH 12/12] libnsdb: Use correct LDAP attribute name to set FslPort X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-CT-RefId: str=0001.0A090204.4EE7D747.00AF:SCFSTAT1119972, ss=1, re=-4.000, fgs=0 X-Auth-Type: Internal IP After using nsdb_create_fsls_s() to create an FSL record, the fedfsNsdbPort field contained the value for the fedfsFslPort field. This was never exposed before because the nsdb-create_fsl tool sets both attributes to zero. Introduced by commit 0520ee72: "Initial commit," (March 29, 2011). Signed-off-by: Chuck Lever --- src/libnsdb/administrator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/libnsdb/administrator.c b/src/libnsdb/administrator.c index 40b3652..15db8ac 100644 --- a/src/libnsdb/administrator.c +++ b/src/libnsdb/administrator.c @@ -619,7 +619,7 @@ nsdb_create_nfs_fsl_entry_s(LDAP *ld, const char *nce, struct fedfs_fsl *fsl, servernamevals, fsl->fl_fslhost); if (fsl->fl_fslport != 0) { sprintf(serverportbuf, "%d", fsl->fl_fslport); - nsdb_init_add_attribute(attrs[i++], "fedfsNsdbPort", + nsdb_init_add_attribute(attrs[i++], "fedfsFslPort", serverportvals, serverportbuf); } sprintf(ttybuf, "%d", fsl->fl_fslttl);