mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Fix some miscellaneous places that were using raw open() or
fopen(), instead of going through fd.c ... naughty naughty.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.26 1999/02/13 23:20:01 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.27 1999/05/09 00:54:30 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -339,9 +339,9 @@ SetCharSet()
|
||||
strlen(p) + 2) * sizeof(char));
|
||||
sprintf(map_file, "%s/%s", DataDir, p);
|
||||
#ifndef __CYGWIN32__
|
||||
file = fopen(map_file, "r");
|
||||
file = AllocateFile(map_file, "r");
|
||||
#else
|
||||
file = fopen(map_file, "rb");
|
||||
file = AllocateFile(map_file, "rb");
|
||||
#endif
|
||||
if (file == NULL)
|
||||
return;
|
||||
@ -376,7 +376,7 @@ SetCharSet()
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(file);
|
||||
FreeFile(file);
|
||||
free(map_file);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user