1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/examples/libsmbclient
Andreas Schneider b7c45f9c4f examples: Initialize char arrays
"Error: UNINIT (CWE-457):
samba-4.20.0rc2/examples/libsmbclient/testacl.c:35: var_decl: Declaring variable ""value"" without initializer.
samba-4.20.0rc2/examples/libsmbclient/testacl.c:254: uninit_use_in_call: Using uninitialized value ""*value"" as argument to ""%s"" when calling ""printf"". [Note: The source code implementation of the function has been overridden by a builtin model.]
  252|   			}
  253|
  254|-> 			printf(""Attributes for [%s] are:\n%s\n"", path, value);
  255|
  256|   			if (stat_and_retry)"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2024-07-08 07:36:33 +00:00
..
get_auth_data_fn.h examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
Makefile
Makefile.internal.in
README
testacl2.c examples: Make sure the array is probably initialized 2024-06-30 23:20:33 +00:00
testacl3.c examples: Initialize char arrays 2024-06-28 11:39:33 +00:00
testacl.c examples: Initialize char arrays 2024-07-08 07:36:33 +00:00
testbrowse2.c examples: Fix code spelling 2023-03-28 09:33:31 +00:00
testbrowse.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testchmod.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testctx.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testfstatvfs.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testnotify.c examples:smbclient:notify: fix O3 error unused result from fgets 2016-05-13 00:16:16 +02:00
testread.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testsmbc.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
teststat2.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
teststat3.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
teststat.c examples: Enable posix for teststat 2023-10-12 16:55:34 +00:00
teststatvfs.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testtruncate.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testutime.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
testwrite.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
tree.c examples: Make libsmbclient samples look a *bit* less ugly 2022-08-26 18:54:37 +00:00
wscript_build

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