packages/net/netatalk/patches/003-fix-build-without-ldap.patch
Daniel Golle c0e0e7198e netatalk: update to version 3.1.9
* now a single config file in /etc/afp.conf
 * convert services to procd while at it
 * take over maintainership as the original maintainer is
   unresponsive (see #1550)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-12 00:15:47 +02:00

15 lines
659 B
Diff

--- a/etc/afpd/volume.c
+++ b/etc/afpd/volume.c
@@ -380,7 +380,11 @@ static int getvolparams(const AFPObj *ob
ashort |= VOLPBIT_ATTR_UNIXPRIV;
if (vol->v_flags & AFPVOL_TM)
ashort |= VOLPBIT_ATTR_TM;
- if (!ldap_config_valid || vol->v_flags & AFPVOL_NONETIDS)
+ if (
+#ifdef HAVE_LDAP
+ !ldap_config_valid ||
+#endif
+ vol->v_flags & AFPVOL_NONETIDS)
ashort |= VOLPBIT_ATTR_NONETIDS;
if (obj->afp_version >= 32) {
if (vol->v_vfs_ea)