gnome-keyring r1142 - in trunk: . common
- From: nnielsen svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-keyring r1142 - in trunk: . common
- Date: Sun, 18 May 2008 12:55:37 +0000 (UTC)
Author: nnielsen
Date: Sun May 18 12:55:36 2008
New Revision: 1142
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1142&view=rev
Log:
* common/gkr-unix-credentials.c: Fix use of undefined variable
on certain OS's. Patch by Brian Cameron. Fixes bug #530989
Modified:
trunk/ChangeLog
trunk/common/gkr-unix-credentials.c
Modified: trunk/common/gkr-unix-credentials.c
==============================================================================
--- trunk/common/gkr-unix-credentials.c (original)
+++ trunk/common/gkr-unix-credentials.c Sun May 18 12:55:36 2008
@@ -125,11 +125,11 @@
cred = (struct sockcred *) CMSG_DATA (&cmsg.hdr);
*pid = 0;
*uid = cred->sc_euid;
- set_local_creds(fd, FALSE);
+ set_local_creds(sock, FALSE);
#elif defined(HAVE_GETPEERUCRED)
ucred_t *uc = NULL;
- if (getpeerucred (fd, &uc) == 0) {
+ if (getpeerucred (sock, &uc) == 0) {
*pid = ucred_getpid (uc);
*uid = ucred_geteuid (uc);
ucred_free (uc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]