summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
Commit message (Collapse)AuthorAgeFilesLines
* examples: Use C99 initializer for poptOption in testaclAndreas Schneider2019-01-281-26/+74
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* examples: Reformat testacl libsmbclient exampleAndreas Schneider2019-01-281-270/+270
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* fix spelling of 'unchangeable'Edward Betts2017-02-221-1/+1
| | | | | | | | | Signed-off-by: Edward Betts <edward@4angle.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Wed Feb 22 12:21:51 CET 2017 on sn-devel-144
* examples:smbclient:write: fix O3 error unused result of fgetsMichael Adam2016-05-131-2/+10
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples:smbclient:read: fix O3 error unused result of fgetsMichael Adam2016-05-131-1/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples:smbclient:fstatvfs: fix O3 error unused result of fgetsMichael Adam2016-05-131-1/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples:smbclient:statvfs: fix O3 error unused result of fgetsMichael Adam2016-05-131-1/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples:smbclient:notify: fix O3 error unused result from fgetsMichael Adam2016-05-131-1/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples:smbclient:testacl3: fix O3 error unused result from fgetsMichael Adam2016-05-131-1/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* examples: Remove all uses of strcpy in examples (except for validchr.c).Jeremy Allison2016-03-225-8/+13
| | | | | | | | I can't figure out how to make git handle the CR/LF differences in this file. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* examples: Fix unchecked result warningsVolker Lendecke2015-10-281-3/+13
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* libsmbclient: Fix 32-bit problemsVolker Lendecke2015-09-073-24/+24
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Sep 7 15:13:08 CEST 2015 on sn-devel-104
* libsmb: Implement smbc_notifyVolker Lendecke2015-07-102-0/+79
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 10 09:35:13 CEST 2015 on sn-devel-104
* Fix the developer O3 buildVolker Lendecke2015-02-251-1/+1
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Feb 25 16:32:29 CET 2015 on sn-devel-104
* examples/libsmbclient: avoid some compiler warningsStefan Metzmacher2014-04-023-15/+18
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* examples/libsmbclient: Cast mode_t to unsigned int for GNU/Solaris buildAndrew Bartlett2013-03-151-2/+2
| | | | | | | Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Mar 15 20:22:08 CET 2013 on sn-devel-104
* examples: fix build on AIX6Christian Ambach2012-11-202-0/+4
| | | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Nov 20 16:06:59 CET 2012 on sn-devel-104
* vfs: Remove -D_LARGEFILE64_SOURCE from vfs examples MakefileAndrew Bartlett2012-04-051-1/+1
|
* examples/testsmbc.c - substitute deprecated function "bzero" with "memset"Matthias Dieter Wallnöfer2012-02-221-1/+1
| | | | | | | | | Here we do not make any use of libreplace and hence it would be overkill to include the right headers for Solaris. This fixes bug: https://bugzilla.samba.org/show_bug.cgi?id=8767 Signed-off-by: Andrew Tridgell <tridge@samba.org>
* examples/testsmbc.c - quiet implicit cast warnings on OpenSolarisMatthias Dieter Wallnöfer2012-02-221-2/+2
| | | | | | https://bugzilla.samba.org/show_bug.cgi?id=8767 Signed-off-by: Andrew Tridgell <tridge@samba.org>
* examples/testsmbc.c - remove unused function "print_list_fn"Matthias Dieter Wallnöfer2012-02-221-16/+0
| | | | | | It does not get referenced from anywhere. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* examples/testsmbc.c - remove unused variablesMatthias Dieter Wallnöfer2012-02-221-2/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* smbwrapper: Remove smbwrapperAndrew Bartlett2012-02-0917-4522/+0
| | | | | | | | | | | | | | | | | | | There are now many better ways to access a remote SMB filesystem, which do not rely on LD_PRELOAD and the associated dangers. FUSE, gvfs and the CIFS VFS are all much better options which do not require knowing every possible libc entry point that can deal with a file descriptor. As an example of the maintainence that would be required to keep this going, recent changes to deal with thread races and close-on-exec have resulted in dup3(), but this isn't currently mapped. While this would not be hard to add, it illistrates why it is better to move to an interface designed for this task. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Feb 9 01:58:24 CET 2012 on sn-devel-104
* build: Add missing dependencies on poptAmitay Isaacs2012-01-271-1/+1
| | | | | | | | This fixes compilation issues on freebsd where system popt is installed under /usr/local. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Jan 27 08:33:52 CET 2012 on sn-devel-104
* examples: malloc is declared in <stdlib.h>Volker Lendecke2012-01-011-1/+0
|
* examples: rework wscript to use a loopAndrew Bartlett2011-10-281-84/+23
| | | | | | I think this format is more compact and easier to understand. Andrew Bartlett
* examples: compile libsmbclient tests using just SAMBA_BINARYAndrew Bartlett2011-10-201-17/+17
| | | | | | This ensures that these compile without the extra includes that SAMBA3_BINARY adds. Andrew Bartlett
* Fix a boatload of warnings in the examples.Jeremy Allison2011-10-2015-163/+48
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Oct 20 02:29:52 CEST 2011 on sn-devel-104
* s3-waf: make sure we always compile (not install) our libsmbclient testcode.Günther Deschner2011-10-192-0/+87
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 19 20:42:52 CEST 2011 on sn-devel-104
* s3-libsmbclient-examples Add tests for debug behaviour.Andrew Bartlett2010-11-021-1/+16
|
* examples: Fix typo in comment.Karolin Seeger2010-04-131-1/+1
| | | | Karolin
* s4: Call va_end() after all va_start()/va_copy() calls.Andrew Kroeger2009-06-181-5/+9
| | | | | | | | This corrects the issues reaised in bug #6129, and some others that were not originally identified. It also accounts for some code that was in the original bug report but appears to have since been made common between S3 and S4. Thanks to Erik Hovland <erik@hovland.org> for the original bug report.
* Ensure parameter types match format stringDerrell Lipman2009-03-274-18/+38
|
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-142-2/+4
| | | | | | | - Revert Tim's changes for the moment. I need to see what the issue is and arrange to use "struct statvfs" if at all possible. Derrell
* s3 libsmbclient: Fix fstatvfs to be more portableTim Prouty2009-02-132-4/+2
| | | | | | | | | | | The statvfs struct isn't guaranteed to be portable across operating systems. Since libsmbclient isn't actually calling statvfs and just using the statvfs struct to store similar information, this patch adds a new portable smbc_statvfs struct. This fixes a few of the failures in the build farm introduced by: ae259575c447e61665c8e7070c476914161b953f Derrell, please check.
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-123-0/+228
| | | | | | - port functionality from v3_3_test to master Derrell
* examples/libsmbclient: fix Makefile after merged build patch changes.Michael Adam2008-09-171-18/+18
| | | | | | | New variable FLAGS in source3/Makefile.in introduced recursive variable FLAGS in Makefile.internal. Michael
* examples/libsmbclient: adapt to new samba3 source dir "source3/Michael Adam2008-09-172-3/+3
| | | | Michael
* libsmbclient examples: source/bin to the library search path for smbwrapper ↵Michael Adam2008-08-211-1/+1
| | | | | | | build Michael (This used to be commit fe62098666a16b31b025867f273d407e77152c4c)
* libsmbclient examples: add Makefile.internal.in for building from a samba sourceMichael Adam2008-08-211-0/+138
| | | | | | | Without needing to install libsmbclient to /usr/local/samba first. Michael (This used to be commit f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)
* libsmbclient examples: fix prototype for readlinkMichael Adam2008-08-211-1/+1
| | | | | Michael (This used to be commit 28688cfd57c322937f2c63087380c377bd961018)
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-122-0/+21
| | | | | | | | | | Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
* Add krb5 support for the testbrowse example.Andreas Schneider2008-06-232-1/+15
| | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com> (This used to be commit 84b1ea39a4f27ebcf06a2bafed78396c7353df0e)
* man pages: Move 'smbsh' man page to the examples directory.Karolin Seeger2008-06-173-0/+475
| | | | | | | | | | smbsh.c is located in the examples directory. It does not make sense to install a man page without installing the tool itself. This fixes bug #4724. Karolin (This used to be commit 797ed744b15c94fa4831d9796b40bb0ab5df55b7)
* Working on bug #5475Derrell Lipman2008-05-301-14/+34
| | | | | | | - Add code to test whether smbc_stat() munges future smbc_getxattr() results. Derrell (This used to be commit 5f6b301f92e9e9d5ee1dab9ef8eca2cc77e12941)
* Update libsmbclient examples to match new librariesDerrell Lipman2008-05-302-2/+2
| | | | | | | - talloc and tdb have been moved to separate libraries. Link with those. Derrell (This used to be commit e4060ad864ec9d4e9092a832c3c664ee31b6125a)
* Missed a few 'deprecated' markersDerrell Lipman2008-03-031-1/+1
| | | | (This used to be commit 76ba37ac46b4a77fe228ca90635fa19140541ccd)
* Continued revamping of libsmbclient.Derrell Lipman2008-03-032-3/+3
| | | | | | | | | | | | | | - James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell (This used to be commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
* Remove use of deprecated functionDerrell Lipman2008-03-025-8/+8
| | | | (This used to be commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-13/+4
| | | | | | | | | - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell (This used to be commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)