mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
b7c45f9c4f
"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>
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