git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@174
91ce42f0-d328-0410-95d8-
f526ca767f89
if (*ofd == -1) {
Dmsg1(100, "File not open: %s\n", ofile);
- fid = open(ofile, O_RDWR); /* attempt to open the file */
+ fid = open(ofile, O_RDWR|O_BINARY); /* attempt to open the file */
if (fid >= 0) {
*ofd = fid;
}
ofile[pnl] = savechr; /* restore full name */
Dmsg1(100, "Create file %s\n", ofile);
- mode = O_WRONLY | O_CREAT | O_TRUNC;
+ mode = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY;
if (IS_CTG(statp->st_mode)) {
mode |= O_CTG; /* set contiguous bit if needed */
}
/* */
#define VERSION "1.27"
#define VSTRING "1"
-#define DATE "22 October 2002"
-#define LSMDATE "22Oct02"
+#define DATE "23 October 2002"
+#define LSMDATE "23Oct02"
/* Debug flags */
#define DEBUG 1