diff options
author | Jan Tatje <jan@jnt.io> | 2018-05-17 23:02:22 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-08-01 22:13:51 +0000 |
commit | 16354c44b431a0c9861ad169a78490e6df3f283a (patch) | |
tree | 38a66317f04de0af3747550a6c8150226354457d /main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch | |
parent | 81d64184adf4e01afc64a88e697fe35182bc90ed (diff) | |
download | aports-16354c44b431a0c9861ad169a78490e6df3f283a.tar.bz2 aports-16354c44b431a0c9861ad169a78490e6df3f283a.tar.xz |
main/nfs-utils: Fix and enable rpc.svcgssd
enabled svcgssd build flag, applied patch from gentoo to make it
build and wrote another patch to fix segfaults, because musl
returns -1 for sysconf(_SC_GETGR_R_SIZE_MAX), which was not handled
at all, thus allocating a smaller buffer than needed.
Diffstat (limited to 'main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch')
-rw-r--r-- | main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch b/main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch new file mode 100644 index 0000000000..77c902f272 --- /dev/null +++ b/main/nfs-utils/nfs-utils-svcgssd_undefined_reference.patch @@ -0,0 +1,40 @@ +From 1451d7585bf1c622658ccc04abac7e79ffe40263 Mon Sep 17 00:00:00 2001 +From: Justin Mitchell <jumitche@redhat.com> +Date: Mon, 8 Jan 2018 09:14:11 -0500 +Subject: [PATCH] svcgssd: Update svcgssd so that it builds + +Since a15bd948 the --enable-svcgss option no longer builds +as svcgssd references functions which were changed at that time. +Fix those, and other function changes since then. + +Signed-off-by: Justin Mitchell <jumitche@redhat.com> +Signed-off-by: Steve Dickson <steved@redhat.com> +--- + utils/gssd/svcgssd.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c +index 3514ae1..23f0c0b 100644 +--- a/utils/gssd/svcgssd.c ++++ b/utils/gssd/svcgssd.c +@@ -63,6 +63,8 @@ + #include "err_util.h" + #include "conffile.h" + ++struct state_paths etab; ++ + void + sig_die(int signal) + { +@@ -101,7 +103,7 @@ main(int argc, char *argv[]) + char *principal = NULL; + char *s; + +- conf_init(NFS_CONFFILE); ++ conf_init_file(NFS_CONFFILE); + + s = conf_get_str("svcgssd", "principal"); + if (!s) +-- +1.8.3.1 + |