Skip to content
Advertisement

Tag: smb

POSIX open() hangs on SMB share

I have a problem where I mount a Windows SMB share under linux with mount.cifs and write to files from my C++ program. This works fine, but as soon as network problems arise (i.e. Windows server disconnect), opening the file with POSIX open() will hang indefinitely. The same happens for the POSIX close() call if the share disconnects while the

How to get list of files in directory smb libcurl?

I’m trying to get a list of files in the directory with libcurl from the SMB server. But I have a error: If I try to get the file then everything will be okay: Answer It is not currently supported by libcurl. It is however mentioned in the TODO as something that we’d like to see added one day.

Advertisement