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  
    3737#include <ucred.h>
    3838#endif
    3939
     40#ifndef FALSE
     41#define FALSE 0
     42#endif
     43
    4044int
    4145gkr_unix_credentials_read (int sock, pid_t *pid, uid_t *uid)
    4246{
     
    135139                if (getpeereid (sock, &euid, &egid) == 0) {
    136140                        *uid = euid;
    137141                } else {
    138                         g_warning ("getpeereid() failed: %s", strerror (errno));
     142                        fprintf (stderr, "getpeereid() failed: %s\n", strerror (errno));
    139143                        return FALSE;
    140144                }
    141145#elif defined(HAVE_GETPEERUCRED)