Skip site navigation (1) Skip section navigation (2)

Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Garrett Wollman <wollman(at)khavrinen(dot)lcs(dot)mit(dot)edu>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Date: 2001-08-18 04:08:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
> There are some funky alignment macros that you probably need to use on
> BSD/OS.  Also, as written this will break on NetBSD and OpenBSD for
> reasons I have already noted (the structure is named something
> different there), and those systems will also require the alignment
> macros.  (Basically, putting the two structures in another larger
> structure is a shortcut in my implementation which only works because
> the compiler puts the right amount of padding in; on those other
> systems, more padding is required.)

OK, here is an even better version.  It handles the lack of alignment in
the the structure passing.  This works on BSD/OS and should work on
FreeBSD too.

I will apply it in a day or so unless someone finds a problem.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


pgsql-patches by date

Next:From: Tatsuo IshiiDate: 2001-08-18 06:46:36
Subject: Re: encoding names
Previous:From: Serguei MokhovDate: 2001-08-18 03:02:06
Subject: Re: encoding names

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group