2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 08:05:21 +00:00

O_BINARY -> _O_BINARY

This commit is contained in:
Mark Andrews
2012-09-12 13:51:49 +10:00
parent 771e68ab7f
commit 0b9ea3fca6

View File

@@ -52,7 +52,7 @@ gettemp(char *path, isc_boolean_t binary, int *doopen) {
int flags = O_CREAT|O_EXCL|O_RDWR; int flags = O_CREAT|O_EXCL|O_RDWR;
if (binary) if (binary)
flags |= O_BINARY; flags |= _O_BINARY;
trv = strrchr(path, 'X'); trv = strrchr(path, 'X');
trv++; trv++;
@@ -380,7 +380,7 @@ openuniquemode(char *templet, int mode, isc_boolean_t binary, FILE **fp) {
#else #else
(void)fchmod(fd, mode); (void)fchmod(fd, mode);
#endif #endif
f = fdopen(fd, binary ? "wb+", "w+"); f = fdopen(fd, binary ? "wb+" : "w+");
if (f == NULL) { if (f == NULL) {
result = isc__errno2result(errno); result = isc__errno2result(errno);
(void)remove(templet); (void)remove(templet);