ports/security/sssd/files/patch-src__confdb__confdb.c
Fernando Apesteguía a4a3b5185b security/sssd: fix package with SMB=on
When the option SMB is ON, the port fails to package.

While here:

 * Reorder Makefile variables
 * Change obsolete @unexec to @postexec
 * Rework patches to comply with makepatch format

PR:	244778
Submitted by:	tommyhp2@gmail.com
Approved by:	lukas.slebodnik@intrak.sk (maintainer, timeout)
2020-03-29 18:16:30 +00:00

14 lines
409 B
C

--- src/confdb/confdb.c.orig 2014-09-17 13:01:37 UTC
+++ src/confdb/confdb.c
@@ -28,6 +28,11 @@
#include "util/strtonum.h"
#include "db/sysdb.h"
+char *strchrnul(const char *s, int ch) {
+ char *ret = strchr(s, ch);
+ return ret == NULL ? discard_const_p(char, s) + strlen(s) : ret;
+}
+
#define CONFDB_ZERO_CHECK_OR_JUMP(var, ret, err, label) do { \
if (!var) { \
ret = err; \