Ignore:
Timestamp:
Aug 18, 2017, 4:41:48 PM (8 years ago)
Author:
Silvan Scherrer
Message:

samba server: prevent extra LF in case of printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/printing/printspoolss.c

    r751 r1037  
    2525#include "smbd/globals.h"
    2626#include "../libcli/security/security.h"
    27 
     27#ifdef __OS2__
     28#include <sys/fcntl.h>
     29#endif
    2830void print_spool_terminate(struct connection_struct *conn,
    2931                           struct print_file_data *print_file);
     
    109111        errno = 0;
    110112        fd = mkstemp(pf->filename);
     113#ifdef __OS2__
     114        if (fd >= 0)
     115                setmode(fd, O_BINARY);
     116#endif
    111117        if (fd == -1) {
    112118                if (errno == EACCES) {
Note: See TracChangeset for help on using the changeset viewer.