From 160f6a0368169163d5b7a07546603458b8f7307c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 10 May 1999 15:17:17 +0000 Subject: [PATCH] Rename MAP_FILE to USERMAP_FILE for Digital Unix. --- src/backend/libpq/hba.c | 4 ++-- src/include/libpq/hba.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 49b858bfcc..de5b72cfd6 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -785,9 +785,9 @@ verify_against_usermap(const char *pguser, int bufsize; /* put together the full pathname to the map file */ - bufsize = (strlen(DataDir) + strlen(MAP_FILE) + 2) * sizeof(char); + bufsize = (strlen(DataDir) + strlen(USERMAP_FILE) + 2) * sizeof(char); map_file = (char *) palloc(bufsize); - snprintf(map_file, bufsize, "%s/%s", DataDir, MAP_FILE); + snprintf(map_file, bufsize, "%s/%s", DataDir, USERMAP_FILE); #ifndef __CYGWIN32__ file = AllocateFile(map_file, "r"); diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 0aba2aefed..f344d071a7 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -19,7 +19,7 @@ #define CONF_FILE "pg_hba.conf" /* Name of the config file */ -#define MAP_FILE "pg_ident.conf" +#define USERMAP_FILE "pg_ident.conf" /* Name of the usermap file */ #define OLD_CONF_FILE "pg_hba" -- 2.39.5