summaryrefslogtreecommitdiffstats
path: root/source/libsmb/libsmbclient.c
Commit message (Collapse)AuthorAgeFilesLines
* r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.Gerald Carter2007-04-091-9/+38
| | | | | * Set VERSION to 3.0.25rc1 * Update release notes.
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-15/+0
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-315/+663
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r19581: Merge from SAMBA_3_0_23Gerald Carter2006-11-061-1/+9
|
* r17912: * mssed DNS SRV fix Gerald Carter2006-08-291-2/+2
| | | | | | * internal_resolve_name() fix * time fixes * NULL deref fixes
* r16418: Pull in more Klocwork fixes (up to r16415)Gerald Carter2006-06-201-1/+3
|
* r16348: * merging changes from SAMBA_3_0 r16346Gerald Carter2006-06-191-0/+4
| | | | * updating release notes to match
* r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500Derrell Lipman2006-03-221-14/+89
| | | | | | | | Implement enhancement request 3505. Two additional features are added here. There is now a method of saving an opaque user data handle in the smbc_ context, and there is now a way to request that the context be passed to the authentication function. See examples/libsmbclient/testbrowse.c for an example of using these features.
* r14418: Try and fix Coverity #39 and #40 by making theJeremy Allison2006-03-151-2/+10
| | | | | implicit function contract explicit. Jeremy.
* r14279: Fix coverity #86, 87, 88, 89: Jim McDonough2006-03-131-10/+27
| | | | | Free grp_sid and owner_sid before returning. Also, only allow one group or owner.
* r14241: Fix Coverity bug # 146Volker Lendecke2006-03-121-1/+3
|
* r14236: Fix Coverity bug # 90Volker Lendecke2006-03-121-0/+1
|
* r14235: Fix Coverity bug # 91Volker Lendecke2006-03-121-0/+12
|
* r14234: Fix Coverity bug # 93Volker Lendecke2006-03-121-0/+1
|
* r14158: Fix coverity CID #147 -- do not dereference pointers before checking ↵Alexander Bokovoy2006-03-101-2/+4
| | | | their existence
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13495: Derell, I'm removing that double setup_logging(), just a typo.Günther Deschner2006-02-141-1/+0
| | | | Guenther
* r13316: Let the carnage begin....Gerald Carter2006-02-031-10/+3
| | | | Sync with trunk as off r13315
* r13216: r12422@cabra: derrell | 2006-01-28 23:57:35 -0500Derrell Lipman2006-01-291-33/+0
| | | | | | | Fix cli_setpathinfo() to actually do what it's supposed to. Also, get rid of some apparently drug-induced code to deal with create time which isn't being manipulated anyway.
* r13214: r12420@cabra: derrell | 2006-01-28 19:10:58 -0500Derrell Lipman2006-01-291-44/+57
| | | | | | | | | | | This should fix bug #3446. - The authentication domain provided an an SMB URL was being ignored. This patch fixes that. - There were a number of places where string copies were not being confirmed to be properly null-terminated. Now, all string copies in libsmbclient.c are properly null-terminated.
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2006-01-281-3/+3
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500Derrell Lipman2005-12-291-1/+9
| | | | allow for arbitrary option value types
* r12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500Derrell Lipman2005-12-291-2/+28
| | | | bug (enhancement) #2651: add option to log debug messages to stderr instead of stdout
* r12570: r12084@cabra: derrell | 2005-12-29 10:05:16 -0500Derrell Lipman2005-12-291-25/+56
| | | | do not open connection when only looking for cached connection; also, fix crash caused by missing initialization following recent locale changes
* r12569: r12083@cabra: derrell | 2005-12-29 09:39:45 -0500Derrell Lipman2005-12-291-255/+526
| | | | fix line length and make formatting/indentation more consistent
* r12485: r12044@cabra: derrell | 2005-12-25 16:46:47 -0500Derrell Lipman2005-12-251-73/+87
| | | | | | | | | When enumerating what could be a server name or a workgroup name, first check for an existing server structure. If none exists, then go through the previous determination of whether it's a serrver or a workgroup. This should avoid doing a NetBIOS name query each time, if we've already connected to the specified server. (While we're at it, clean up indenting and line length in this area of code.)
* r12472: r12040@cabra: derrell | 2005-12-24 23:26:55 -0500Derrell Lipman2005-12-251-7/+2
| | | | revert immediately previous change and fix problem correctly. Interfaces were being loaded before all configuration files had been read. *This* should fix byg 3336.
* r12471: r12038@cabra: derrell | 2005-12-24 23:17:16 -0500Derrell Lipman2005-12-251-0/+5
| | | | libsmbclient was not loading the global configuration file. This should fix 3336.
* r12466: r12028@cabra: derrell | 2005-12-24 20:25:38 -0500Derrell Lipman2005-12-251-2/+4
| | | | parse dates correctly. w_time and m_time were reversed.
* r12235: r11738@cabra: derrell | 2005-12-14 13:15:14 -0500Derrell Lipman2005-12-141-0/+2
| | | | | | | | | | | Ensure that when libsmbclient copies a cli, it prevents the cli from later being freed, by turning off the 'allocated' flag. Change a DEBUG message in pipe_open code from level 0 to level 1 since libsmbclient is now regularly attempting to open a pipe for share enumeration, and falling back to RAP if RPC is unavailable (e.g. win98). We don't want the debug message to display when the pipe open fails, under these normal circumstances.
* r12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500Derrell Lipman2005-12-141-27/+46
| | | | | | | | | | | | | 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.
* r12119: r10812@cabra: derrell | 2005-12-07 22:44:26 -0500Derrell Lipman2005-12-081-5/+0
| | | | sync to repository didn't work correctly...???
* r12118: r10805@cabra: derrell | 2005-12-07 22:34:55 -0500Derrell Lipman2005-12-081-12/+101
| | | | first go at supporting long file names. seeems to work; requires more testing
* r12098: r10797@cabra: derrell | 2005-12-06 12:09:00 -0500Derrell Lipman2005-12-061-5/+9
| | | | fixed another memory leak and reverted an (incorrect) fix from yesterday
* r12081: r10674@cabra: derrell | 2005-12-05 13:31:28 -0500Derrell Lipman2005-12-051-19/+0
| | | | get rid of temporary #if 0 blocks
* r12080: r10673@cabra: derrell | 2005-12-05 13:22:34 -0500Derrell Lipman2005-12-051-0/+32
| | | | | | Correct some memory and file descriptor leaks. This should fix bugs 3257, 3267 and 3273.
* r11256: Remove use of long long and strtoll in libsmbclient (weJeremy Allison2005-10-211-31/+30
| | | | | | | | can't assume long long is always there). Removed unused var in new a/c rename code. long long still used in eventlog code but Jerry has promised to fix that. Jeremy.
* r11124: Commit Chris' fixes for libmsrpc after the rpc_clientGerald Carter2005-10-171-17/+19
| | | | | | | | | | | | | | | | rewrite. His comments: I've gotten the libmsrpc code to work with TRUNK. I've put the patch at: www.uoguelph.ca/~cnicholl/libmsrpc_trunk_v1.patch.gz It is from revision 11093. I also fixed a minor bug in the svcctl code, the timeout parameter for all the control functions was working in milliseconds instead of seconds. Also fixed bug in Makefile when building libmsrpc.a
* r10970: Fix bug #3166 - null pointer dereference if $HOME notJeremy Allison2005-10-131-10/+16
| | | | | defined. Also clarified confusing error messages. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-31/+58
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10176: adding smbctool from Kalim's SoC project; requires make bin/smbctoolGerald Carter2005-09-121-36/+253
|
* r10001: adding in libmsrpc from Chris Nicholls (SoC project). not built by ↵Gerald Carter2005-09-031-20/+23
| | | | default per conversation with Jeremy until the rpc changes from trunk are merged back
* r8093: Next round. Now it compiles with --enable-socket-wrapper.Volker Lendecke2005-07-031-7/+7
| | | | Volker
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-3/+3
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r7817: Eliminate use of ctime_r() in libsmbclient DEBUG statement. It seems ↵Derrell Lipman2005-06-211-4/+16
| | | | | | | that ctime_r() takes different parameters on Solaris than it does on Linux, and it's easier to just eliminate the use of it than to write a configure test.
* r7245: bug fixes in libsmbclient, setting time attributesDerrell Lipman2005-06-031-2/+11
|
* r7175: fix incorrect commentDerrell Lipman2005-06-011-1/+4
|
* r7172: This is the proper fix for setting file times from libsmbclient. We nowDerrell Lipman2005-06-011-84/+147
| | | | | try setpathinfo, and if that doesn't work (e.g. on win98), revert to the previous slower method.
* r7168: Updating file times from libsmbclient was not working for win98. ↵Derrell Lipman2005-06-011-33/+62
| | | | | | | | | | | | | | 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.
* r6595: This is Volkers new-talloc patch. Just got the go-ahead fromJeremy Allison2005-05-031-1/+1
| | | | | Volker to commit. Woo Hoo ! Jeremy.