Skip to content

Commit

Permalink
security/polkit: Support DragonFly
Browse files Browse the repository at this point in the history
  • Loading branch information
marino committed Dec 3, 2016
1 parent 4eb1a85 commit 0bc1bdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions security/polkit/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.3 2016/09/27 21:56:13 maya Exp $
$NetBSD: distinfo,v 1.4 2016/12/03 01:58:49 marino Exp $

SHA1 (polkit-0.113.tar.gz) = ef855c2d04184dceb38e0940dc7bec9cc3da415c
RMD160 (polkit-0.113.tar.gz) = 661b0a678f7c770c213404db3af604935fdb25bc
Expand All @@ -10,6 +10,6 @@ SHA1 (patch-src_polkitbackend_polkitbackendjsauthority.c) = f0771b27e192ed199c65
SHA1 (patch-src_polkitbackend_polkitd.c) = a567b31131f63f92f8e2967c3aabfa7f3d41f627
SHA1 (patch-src_programs_pkexec.c) = bfc0414c7a943c8e8b8412566a2519198eab8abd
SHA1 (patch-src_programs_pkttyagent.c) = 72a1c3750e6b496b981eb5479201946da80b6d15
SHA1 (patch-test_mocklib_src_netdb.c) = 5d24d5d37eabd552bc8a3cf1d6de03c6c8ffa600
SHA1 (patch-test_mocklibc_src_grp.c) = b393dad5f7b2242e431d9b7db9e48d2f837b0235
SHA1 (patch-test_mocklibc_src_pwd.c) = ff69388ad64f883b1bb459f198e8fc24be1089fd
SHA1 (patch-test_mocklib_src_netdb.c) = 0fe71068a6261d5e2c8874f2b4507e7e3c002526
SHA1 (patch-test_mocklibc_src_grp.c) = 435ff94fd4c7f5511d74d03839fad453dd841633
SHA1 (patch-test_mocklibc_src_pwd.c) = c65b02209db1bd1d531444026822fcca73d5027a
4 changes: 2 additions & 2 deletions security/polkit/patches/patch-test_mocklib_src_netdb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: patch-test_mocklib_src_netdb.c,v 1.2 2016/06/18 12:16:23 youri Exp $
$NetBSD: patch-test_mocklib_src_netdb.c,v 1.3 2016/12/03 01:58:50 marino Exp $

Darwin has setnetgrent.
SunOS has endnetgrent.
Expand All @@ -9,7 +9,7 @@ SunOS has endnetgrent.

// REMEMBER: 1 means success, 0 means failure for netgroup methods

+#if !defined(__APPLE__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
int setnetgrent(const char *netgroup) {
if (!global_netgroup_head)
global_netgroup_head = netgroup_parse_all();
Expand Down
4 changes: 2 additions & 2 deletions security/polkit/patches/patch-test_mocklibc_src_grp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: patch-test_mocklibc_src_grp.c,v 1.3 2016/09/27 21:56:13 maya Exp $
$NetBSD: patch-test_mocklibc_src_grp.c,v 1.4 2016/12/03 01:58:50 marino Exp $

* XXX: no fgetgrent(3)

Expand All @@ -11,7 +11,7 @@ prototype: int setgrent(void)

static FILE *global_stream = NULL;

+#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+static struct group *fgetgrent(FILE *stream) {
+ return NULL;
+}
Expand Down
4 changes: 2 additions & 2 deletions security/polkit/patches/patch-test_mocklibc_src_pwd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: patch-test_mocklibc_src_pwd.c,v 1.2 2016/06/18 12:16:23 youri Exp $
$NetBSD: patch-test_mocklibc_src_pwd.c,v 1.3 2016/12/03 01:58:50 marino Exp $

* XXX: no fgetpwent(3)

Expand All @@ -8,7 +8,7 @@

static FILE *global_stream = NULL;

+#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+static struct passwd *fgetpwent(FILE* stream) {
+ return NULL;
+}
Expand Down

0 comments on commit 0bc1bdb

Please sign in to comment.