- binit(ofd);
- /* Set desired writing mode (BackupWrite() or write()) */
- switch (attr->data_stream) {
- case 0:
- break; /* use default defined by system */
-
- /* These streams require using BackupWrite() */
- case STREAM_WIN32_ATTRIBUTES:
- case STREAM_WIN32_DATA:
- case STREAM_WIN32_GZIP_DATA:
- if (!set_win32_backup(ofd, 1)) { /* use BackupWrite() */
- Jmsg(jcr, M_ERROR, 0, _("Could not set Win32 output format.\n"));
- return CF_ERROR;
- }
-
- /* All other stream use standard system I/O (portable) */
- default:
- set_win32_backup(ofd, 0); /* Disable using BackupWrite() */
- break;