Ignore:
Timestamp:
Feb 9, 2011, 11:06:18 AM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Client 2.1: reconnect fix and text updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/smbwrp.c

    r535 r548  
    511511        }
    512512
     513        cli_set_timeout(cli, 10000); /* 10 seconds. */
     514
    513515        if (!NT_STATUS_IS_OK(cli_connect(c, server_n, &ss)))
    514516        {
     
    933935        }
    934936//debuglocal(2,("getattr rc1 %d\n", os2cli_errno(cli)));
     937
     938        if (cli->fd == -1)
     939        {
     940           /* fd == -1 means the connection is broken */
     941           return maperror(ENOTCONN);
     942        }
    935943
    936944        /* If the path is not on a share (it is a workgroup or a server),
Note: See TracChangeset for help on using the changeset viewer.