git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@286 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/02/15 10:05:59... | ... |
@@ -469,7 +469,11 @@ int get_database(const char *dbfile, int socketfd, const char *file, const char |
469 | 469 |
} |
470 | 470 |
} |
471 | 471 |
|
472 |
+#ifdef C_CYGWIN |
|
473 |
+ if((fd = open(file, O_WRONLY|O_CREAT|O_EXCL|O_BINARY, 0644)) == -1) { |
|
474 |
+#else |
|
472 | 475 |
if((fd = open(file, O_WRONLY|O_CREAT|O_EXCL, 0644)) == -1) { |
476 |
+#endif |
|
473 | 477 |
mprintf("@Can't open new file %s to write\n", file); |
474 | 478 |
perror("open"); |
475 | 479 |
return -1; |