diff options
author | Justin Mitchell <jumitche@redhat.com> | 2017-10-26 08:46:43 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-10-26 08:50:08 -0400 |
commit | f821eb7f9624f047a12fbf5c9dce23994eeb50e8 (patch) | |
tree | dc7cf0bc359fb6c7b599aa86a33d6f9a17024a81 /support/nfsidmap/static.c | |
parent | 1ea6d9231f839b968adb44eaf98b363f436cb1d5 (diff) | |
download | nfs-utils-f821eb7f9624f047a12fbf5c9dce23994eeb50e8.tar.gz nfs-utils-f821eb7f9624f047a12fbf5c9dce23994eeb50e8.tar.xz nfs-utils-f821eb7f9624f047a12fbf5c9dce23994eeb50e8.zip |
nfs-utils: integrate libnfsidmap code with rest of nfs-utils
Modify libnfsidmap to use the now shared conffile code,
adjust the build structure to generate everything correctly,
and modify the other utils to use the merged version of libnfsidmap
instead of testing for an external dependancy.
Signed-off-by: Justin Mitchell <jumitche@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfsidmap/static.c')
-rw-r--r-- | support/nfsidmap/static.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/support/nfsidmap/static.c b/support/nfsidmap/static.c index 9f587af..37b293b 100644 --- a/support/nfsidmap/static.c +++ b/support/nfsidmap/static.c @@ -41,8 +41,7 @@ #include <errno.h> #include <err.h> -#include "queue.h" -#include "cfg.h" +#include "conffile.h" #include "nfsidmap.h" #include "nfsidmap_internal.h" @@ -317,7 +316,7 @@ static int static_init() { LIST_INIT (&uid_mappings[i]); //get all principals for which we have mappings - princ_list = conf_get_tag_list("Static"); + princ_list = conf_get_tag_list("Static", NULL); if (!princ_list) { return -ENOENT; |