Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/client/client.c

    r740 r746  
    17181718
    17191719        status = cli_ntcreate(cli, name, 0,
    1720                               CREATE_ACCESS_READ, 0,
     1720                              SEC_FILE_READ_DATA | SEC_FILE_READ_ATTRIBUTE |
     1721                              SEC_STD_SYNCHRONIZE, 0,
    17211722                              FILE_SHARE_READ|FILE_SHARE_WRITE
    17221723                              |FILE_SHARE_DELETE,
     
    19141915        if (f == x_stdin) {
    19151916                cli_shutdown(cli);
    1916                 exit(0);
     1917                exit(rc);
    19171918        }
    19181919
     
    25292530
    25302531        if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDWR, mode, &fnum))) {
    2531                 if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDONLY, mode, &fnum))) {
    2532                         d_printf("posix_open file %s: for read/write fnum %d\n", targetname, fnum);
     2532                if (NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDONLY, mode, &fnum))) {
     2533                        d_printf("posix_open file %s: for readonly fnum %d\n", targetname, fnum);
    25332534                } else {
    25342535                        d_printf("Failed to open file %s. %s\n", targetname, cli_errstr(cli));
     
    48454846                status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)));
    48464847
    4847                 if (!NT_STATUS_IS_OK(status)) {
    4848                         DEBUG(0, ("SMBecho failed. Maybe server has closed "
    4849                                 "the connection\n"));
     4848                if (NT_STATUS_IS_OK(status)) {
     4849                        return;
     4850                }
     4851
     4852                if (!cli_state_is_connected(cli)) {
     4853                        DEBUG(0, ("SMBecho failed (%s). The connection is "
     4854                                "disconnected now\n", nt_errstr(status)));
    48504855                        finished = true;
    48514856                        smb_readline_done();
Note: See TracChangeset for help on using the changeset viewer.