summaryrefslogtreecommitdiff
path: root/security/policykit/patches/patch-ao
blob: b2fc9c0f604dd1bfc70915e5dd372a673edd7550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ao,v 1.1 2009/01/20 10:08:17 sketch Exp $

--- src/polkit-dbus/polkit-read-auth-helper.c.orig	Tue Jan 20 09:52:20 2009
+++ src/polkit-dbus/polkit-read-auth-helper.c	Tue Jan 20 09:53:15 2009
@@ -175,7 +175,11 @@
                 goto out;
         }
 
+#ifdef HAVE_SOLARIS
+	dfd = dir->dd_fd;
+#else
         dfd = dirfd (dir);
+#endif
         if (dfd == -1) {
                 fprintf (stderr, "polkit-read-auth-helper: error calling dirfd(): %m\n");
                 goto out;