1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples/libsmbclient
Derrell Lipman e317034997 r7168: Updating file times from libsmbclient was not working for win98. Although
the function that was being used to set attributes is a core protocol
function (SMBsetatr = 0x09), it does not appear to work on win98.  As a
temporary measure, when file times are to be set, this version opens the
file and uses SMBsetattrE = 0x22 instead.  (The other advantage of this
function over the original one is that it supports setting access time as
well as modification time.)

The next step, the proper solution if it can be made to work, is to write
functions that use TRANS2_SET_PATH_INFO instead.
(This used to be commit bab0bf7f4f)
2007-10-10 10:57:04 -05:00
..
smbwrapper r7168: Updating file times from libsmbclient was not working for win98. Although 2007-10-10 10:57:04 -05:00
get_auth_data_fn.h r7156: file was missing; svn isn't smart enough to even notify me. sigh. 2007-10-10 10:57:03 -05:00
Makefile r6151: additional examples/tests for libsmbclient 2007-10-10 10:56:25 -05:00
README r6149: Fixes bugs #2498 and 2484. 2007-10-10 10:56:24 -05:00
testacl.c r6149: Fixes bugs #2498 and 2484. 2007-10-10 10:56:24 -05:00
testbrowse.c r6149: Fixes bugs #2498 and 2484. 2007-10-10 10:56:24 -05:00
testchmod.c r6151: additional examples/tests for libsmbclient 2007-10-10 10:56:25 -05:00
testsmbc.c r6149: Fixes bugs #2498 and 2484. 2007-10-10 10:56:24 -05:00
teststat.c r6157: 'editorial changes' to example code 2007-10-10 10:56:25 -05:00
testutime.c r7153: add better test facilities to testutime 2007-10-10 10:57:03 -05:00
tree.c r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; provided more complete libsmbclient testbrowse utility 2007-10-10 10:56:22 -05:00

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