Changeset 1037 for trunk/server
- Timestamp:
- Aug 18, 2017, 4:41:48 PM (8 years ago)
- Location:
- trunk/server/source3/printing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/printing/printing.c
r862 r1037 2955 2955 pjob->fd = mkstemp(pjob->filename); 2956 2956 2957 #ifdef __OS2__ 2958 if (pjob->fd >= 0) 2959 setmode(pjob->fd, O_BINARY); 2960 #endif 2957 2961 if (pjob->fd == -1) { 2958 2962 werr = map_werror_from_unix(errno); -
trunk/server/source3/printing/printspoolss.c
r751 r1037 25 25 #include "smbd/globals.h" 26 26 #include "../libcli/security/security.h" 27 27 #ifdef __OS2__ 28 #include <sys/fcntl.h> 29 #endif 28 30 void print_spool_terminate(struct connection_struct *conn, 29 31 struct print_file_data *print_file); … … 109 111 errno = 0; 110 112 fd = mkstemp(pf->filename); 113 #ifdef __OS2__ 114 if (fd >= 0) 115 setmode(fd, O_BINARY); 116 #endif 111 117 if (fd == -1) { 112 118 if (errno == EACCES) {
Note:
See TracChangeset
for help on using the changeset viewer.