From patchwork Tue Dec 13 22:52:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [12/12] libnsdb: Use correct LDAP attribute name to set FslPort Date: Tue, 13 Dec 2011 12:52:45 -0000 From: Chuck Lever X-Patchwork-Id: 131212 Message-Id: <20111213225245.15402.64916.stgit@degas.1015granger.net> To: fedfs-utils-devel@oss.oracle.com 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);