mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Remove NT-specific file open defines by defining our own open macros for
"rb" and "wb".
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user