blob: b3f17d2b33261f933faec57011bd78cf4ac7a4fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- pam/gkr-pam-client.c.orig 2007-08-10 15:28:07.000000000 -0400
+++ pam/gkr-pam-client.c 2007-08-14 01:19:08.000000000 -0400
@@ -29,6 +29,10 @@
#include <sys/types.h>
#include <sys/socket.h>
+#if defined(LOCAL_PEERCRED)
+#include <sys/param.h>
+#include <sys/ucred.h>
+#endif
#include <sys/un.h>
#include <sys/uio.h>
#include <sys/wait.h>
@@ -90,7 +94,7 @@ check_peer_same_uid (int sock)
socklen_t xuc_len = sizeof (xuc);
if (getsockopt (sock, SOL_SOCKET, LOCAL_PEERCRED, &xuc, &xuc_len) == 0 &&
- xuc_len == sizeof (xuc) {
+ xuc_len == sizeof (xuc)) {
uid = xuc.cr_uid;
} else {
syslog (GKR_LOG_ERR, "could not get gnome-keyring-daemon socket credentials, "
|