mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
765daab643
1. Fix a crash bug which should have reared its ugly head ages ago, but for some reason, remained dormant until recently. The bug pertained to libsmbclient doing a structure assignment of a cli after having opened a pipe. The pipe open code makes a copy of the cli pointer that was passed to it. If the cli is later copied (and that cli pointer that was saved is no longer valid), the pipe code will cause a crash during shutdown or when the copied cli is closed. 2. The 'type' field in enumerated shares was not being set correctly with the new RPC-based mechanism for enumerating shares. (This used to be commit 62a02b8f2a1fcb66881a9c9636e0b27e3049c5a1)
Some simple example programs for libsmbclient ... testsmbc.c is kinda broken as it has many hardcoded bits in it testbrowse.c opens a remote folder and displays its contents teststat.c allows comparing the results of smbc_stat() against a local stat() of the same file. tree.c is an example of how you might do some of these things with GTK+ It needs lots of work but shows you some ways to use libsmbclient. smbwrapper implements the old smbsh/smbwrapper mechanism using libsmbclient, in such a way that it works on Linux Richard Sharpe, 17 May 2001 Derrell Lipman, 30 Mar 2005