Skip to content

smb_share_get_list always returns -2 #127

@leonsg

Description

@leonsg

I have the following code:

smb_share_list list;
size_t shareCount = 0;
result = smb_share_get_list(session, &list, &shareCount);

The result is always -2.
I have checked to ensure that "smb_session_login" and "smb_session_is_guest" both returns 0. So it means I am connected to the file server correctly. But I cannot seem to get the share list.

Can anyone point me in the right direction to solving this issue? Help is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions