[fedfs-utils] [PATCH 12/12] libnsdb: Use correct LDAP attribute name to set FslPort

Chuck Lever chuck.lever at oracle.com
Tue Dec 13 14:52:45 PST 2011


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 <chuck.lever at oracle.com>
---

 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);




More information about the fedfs-utils-devel mailing list