Remove socket credentials defines not referenced.
This commit is contained in:
parent
1919b62058
commit
6db0a6b035
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.115 2003/09/25 06:57:59 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.116 2003/10/25 03:48:46 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1433,15 +1433,15 @@ ident_unix(int sock, char *ident_user)
|
|||||||
struct msghdr msg;
|
struct msghdr msg;
|
||||||
|
|
||||||
/* Credentials structure */
|
/* Credentials structure */
|
||||||
#ifdef HAVE_STRUCT_CMSGCRED
|
#if defined(HAVE_STRUCT_CMSGCRED)
|
||||||
typedef struct cmsgcred Cred;
|
typedef struct cmsgcred Cred;
|
||||||
|
|
||||||
#define cruid cmcred_uid
|
#define cruid cmcred_uid
|
||||||
#elif HAVE_STRUCT_FCRED
|
#elif defined(HAVE_STRUCT_FCRED)
|
||||||
typedef struct fcred Cred;
|
typedef struct fcred Cred;
|
||||||
|
|
||||||
#define cruid fc_uid
|
#define cruid fc_uid
|
||||||
#elif HAVE_STRUCT_SOCKCRED
|
#elif defined(HAVE_STRUCT_SOCKCRED)
|
||||||
typedef struct sockcred Cred;
|
typedef struct sockcred Cred;
|
||||||
|
|
||||||
#define cruid sc_uid
|
#define cruid sc_uid
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.83 2003/08/04 02:40:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.84 2003/10/25 03:48:47 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -464,13 +464,6 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
|
|||||||
/* Point to start of first structure */
|
/* Point to start of first structure */
|
||||||
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
|
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRUCT_SOCKCRED
|
|
||||||
/* Prevent padding */
|
|
||||||
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct sockcred)];
|
|
||||||
|
|
||||||
/* Point to start of first structure */
|
|
||||||
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The backend doesn't care what we send here, but it wants exactly
|
* The backend doesn't care what we send here, but it wants exactly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user