pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
opendoas: Check for HOST_NAME_MAX in a platform agnostic way.
Module Name: pkgsrc-wip
Committed By: Sunil Nimmagadda <sunil%nimmagadda.net@localhost>
Pushed By: skn
Date: Tue Nov 3 16:30:02 2020 +0530
Changeset: 4b77a3a18ccac7df702a45695c8659137f46eb3a
Modified Files:
opendoas/distinfo
opendoas/patches/patch-pam.c
Log Message:
opendoas: Check for HOST_NAME_MAX in a platform agnostic way.
Suggested by leot on #pkgsrc.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4b77a3a18ccac7df702a45695c8659137f46eb3a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
opendoas/distinfo | 2 +-
opendoas/patches/patch-pam.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diffs:
diff --git a/opendoas/distinfo b/opendoas/distinfo
index fe78352f28..8b1ca7604a 100644
--- a/opendoas/distinfo
+++ b/opendoas/distinfo
@@ -6,4 +6,4 @@ SHA512 (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = 34c375
Size (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = 30797 bytes
SHA1 (patch-configure) = e144a8009b96a00da0320cffc477f36c32c1cfc1
SHA1 (patch-doas.c) = de7bc8c1312cb186f44fe3f071a34e87dea0f478
-SHA1 (patch-pam.c) = 35df55b83d0071aba476d61dd80ec3e7081f5d4a
+SHA1 (patch-pam.c) = 8bdee3b3dbc48d53a5f7c54ff3e22a1954c1bd2a
diff --git a/opendoas/patches/patch-pam.c b/opendoas/patches/patch-pam.c
index e7c23163e2..b3a6e84129 100644
--- a/opendoas/patches/patch-pam.c
+++ b/opendoas/patches/patch-pam.c
@@ -1,14 +1,14 @@
$NetBSD$
-HOST_NAME_MAX isn't defined on NetBSD.
+Use _POSIX_HOST_NAME_MAX if HOST_NAME_MAX is unavailable.
---- pam.c.orig 2020-02-03 21:41:31.000000000 +0000
+--- pam.c.orig 2020-11-02 13:01:52.000000000 +0000
+++ pam.c
@@ -271,6 +271,9 @@ pamauth(const char *user, const char *my
if (!interactive)
errx(1, "Authorization required");
-+#ifdef __netbsd__
++#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
/* doas style prompt for pam */
Home |
Main Index |
Thread Index |
Old Index