idmapd: fix object order in idmapd_LDADD
Subsystems (2)
PATCH 1/1 idmapd: fix object order in idmapd_LDADD
nfs-utils and libnfsidmap have similar configuration parsing routines. They were the same up until nfs-utils commit 7b33590f (config: Remove the conf_path global), where conf_init() was changed to take a path as an argument. With the current idmap_LDADD ordering in Makefile.am, the conf_init() from libnfsidmap is called, resulting in the following error along with the failure to parse idmapd.conf:
rpc.idmapd[391]: rpc.idmapd: conf_reinit: open ("(null)", O_RDONLY) failed
Placing libnfs.a first in idmap_LDADD ensures that idmapd uses the config parsing routines from nfs-utils instead of libnfsidmap.
--- utils/idmapd/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/idmapd/Makefile.am +1 -1
@@ -15,7 +15,7 @@ idmapd_SOURCES = \ nfs_idmap.h \ queue.h -idmapd_LDADD = $(LIBEVENT) $(LIBNFSIDMAP) ../../support/nfs/libnfs.a +idmapd_LDADD = ../../support/nfs/libnfs.a $(LIBEVENT) $(LIBNFSIDMAP) MAINTAINERCLEANFILES = Makefile.in
Signature · 1 line
2.9.4
Quoted 7 lines · Scott Mayhew
nfs-utils and libnfsidmap have similar configuration parsing routines. They were the same up until nfs-utils commit
7b33590f(config: Remove theconf_pathglobal), whereconf_init()was changed to take a path as an argument. With the currentidmap_LDADDordering in Makefile.am, theconf_init()from libnfsidmap is called, resulting in the following error along with the failure to parse idmapd.conf:
Quoted 6 lines
rpc.idmapd[391]: rpc.idmapd:
conf_reinit: open ("(null)",O_RDONLY) failedPlacing libnfs.a first in
idmap_LDADDensures that idmapd uses the config parsing routines from nfs-utils instead of libnfsidmap.Signed-off-by Scott Mayhew <[email protected]>
Committed....
steved.
Quoted 18 lines
--- utils/idmapd/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)utils/idmapd/Makefile.am +1
-1@@ -15,7 +15,7 @@ idmapd_SOURCES = \ nfs_idmap.h \ queue.h -idmapd_LDADD = $(LIBEVENT) $(LIBNFSIDMAP) ../../support/nfs/libnfs.a +idmapd_LDADD = ../../support/nfs/libnfs.a $(LIBEVENT) $(LIBNFSIDMAP) MAINTAINERCLEANFILES = Makefile.in