Ticket #15643: patch-gkr-unix-credentials.c.diff
File patch-gkr-unix-credentials.c.diff, 585 bytes (added by naochika@…, 16 years ago) |
---|
-
common/gkr-unix-credentials.c
old new 37 37 #include <ucred.h> 38 38 #endif 39 39 40 #ifndef FALSE 41 #define FALSE 0 42 #endif 43 40 44 int 41 45 gkr_unix_credentials_read (int sock, pid_t *pid, uid_t *uid) 42 46 { … … 135 139 if (getpeereid (sock, &euid, &egid) == 0) { 136 140 *uid = euid; 137 141 } else { 138 g_warning ("getpeereid() failed: %s", strerror (errno));142 fprintf (stderr, "getpeereid() failed: %s\n", strerror (errno)); 139 143 return FALSE; 140 144 } 141 145 #elif defined(HAVE_GETPEERUCRED)