diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-06-02 15:57:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-06-02 15:57:44 +0000 |
commit | cc2b5e5815aa596dbbdd288d0d178019f2d521aa (patch) | |
tree | b82baecdde9295a977c530b10f8f15a91e012cda /src/backend/libpq/password.c | |
parent | bf1c8f2b3b067c29f1abdf6fe866fb485ade96e9 (diff) | |
download | postgresql-cc2b5e5815aa596dbbdd288d0d178019f2d521aa.tar.gz postgresql-cc2b5e5815aa596dbbdd288d0d178019f2d521aa.zip |
Remove NT-specific file open defines by defining our own open macros for
"rb" and "wb".
Diffstat (limited to 'src/backend/libpq/password.c')
-rw-r--r-- | src/backend/libpq/password.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/libpq/password.c b/src/backend/libpq/password.c index 9fc715a9a28..c7656f8b98f 100644 --- a/src/backend/libpq/password.c +++ b/src/backend/libpq/password.c @@ -2,7 +2,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: password.c,v 1.28 2000/01/26 05:56:29 momjian Exp $ + * $Id: password.c,v 1.29 2000/06/02 15:57:21 momjian Exp $ * */ @@ -28,11 +28,7 @@ verify_password(char *auth_arg, char *user, char *password) strcat(pw_file_fullname, "/"); strcat(pw_file_fullname, auth_arg); -#ifndef __CYGWIN32__ - pw_file = AllocateFile(pw_file_fullname, "r"); -#else - pw_file = AllocateFile(pw_file_fullname, "rb"); -#endif + pw_file = AllocateFile(pw_file_fullname, PG_BINARY_R); if (!pw_file) { snprintf(PQerrormsg, PQERRORMSG_LENGTH, |