mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
O_BINARY -> _O_BINARY
This commit is contained in:
@@ -52,7 +52,7 @@ gettemp(char *path, isc_boolean_t binary, int *doopen) {
|
||||
int flags = O_CREAT|O_EXCL|O_RDWR;
|
||||
|
||||
if (binary)
|
||||
flags |= O_BINARY;
|
||||
flags |= _O_BINARY;
|
||||
|
||||
trv = strrchr(path, 'X');
|
||||
trv++;
|
||||
@@ -380,7 +380,7 @@ openuniquemode(char *templet, int mode, isc_boolean_t binary, FILE **fp) {
|
||||
#else
|
||||
(void)fchmod(fd, mode);
|
||||
#endif
|
||||
f = fdopen(fd, binary ? "wb+", "w+");
|
||||
f = fdopen(fd, binary ? "wb+" : "w+");
|
||||
if (f == NULL) {
|
||||
result = isc__errno2result(errno);
|
||||
(void)remove(templet);
|
||||
|
Reference in New Issue
Block a user