summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Doxygen janitorMartin Pool2003-02-282-8/+8
| |
| * Doxygen janitor: fix parameter names, grammar, tag names.Martin Pool2003-02-281-14/+14
| |
| * Add a comment about the meaning of samba's internal character set andMartin Pool2003-02-281-0/+24
| | | | | | | | how this interacts with it.
| * additional fix for CR 601Gerald Carter2003-02-271-0/+3
| | | | | | | | | | | | | | * distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients.
| * Doxygen janitorMartin Pool2003-02-271-5/+6
| |
| * - Rename 'modules = ' to 'preload modules = 'Jelmer Vernooij2003-02-271-3/+32
| | | | | | | | | | | | - Add smb_probe_module() - Add init_modules() - Call these functions
| * init_valid_table: Fix a memory leak that would lose theMartin Pool2003-02-261-8/+15
| | | | | | | | | | dynamically-created valid table every time the configuration was reloaded.
| * Move off-by-one buggy malloc()/safe_strcpy() combination to strdup() instead.Andrew Bartlett2003-02-241-3/+1
| | | | | | | | Andrew Bartlett
| * Merge documentation from 3_0.Martin Pool2003-02-241-6/+13
| |
| * Add constAndrew Bartlett2003-02-241-4/+4
| |
| * Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy().Andrew Bartlett2003-02-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | safe_strcpy() isn't particularly safe (this has been noted before) as it does not take the size of the buffer, but instead the size of the buffer *minus 1* The locking.c fix was causing segfaults on machines running with --enable-developer, and was tracked down thanks to the fact that vance's build farm machine runs with such an option, and smbtorture's DIR1 test hits this bug very well. (The --enable-developer code writes to the last byte of the string, to check for incorrect use of safe_strcpy()). Andrew Bartlett
| * move genparser to use talloc contexts instead of [m|c|re]alloc() and free()sSimo Sorce2003-02-232-152/+163
| |
| * More signed/unsigned fixes (yes, I run with funny compiler options) andAndrew Bartlett2003-02-226-12/+13
| | | | | | | | | | | | make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett
| * Doxygen janitorMartin Pool2003-02-211-3/+10
| |
| * Make init_module() and thus smb_load_module() return an int.Jelmer Vernooij2003-02-201-9/+9
| | | | | | | | modules/developer.c: init_module() should return an int
| * Move to a in-memory ccache for winbind, and replace setenv() properly.Andrew Bartlett2003-02-191-0/+18
| | | | | | | | | | | | | | | | (According to the manpages, you cannot put a stack variable into putenv()). Yes, this leaks memory. Andrew Bartlett
| * base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().Jim McDonough2003-02-191-1/+1
| |
| * Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now needJeremy Allison2003-02-181-0/+7
| | | | | | | | | | to set this for Tru64. Jeremy.
| * Remove obsolete comment.Martin Pool2003-02-181-2/+0
| |
| * Doxygen janitor and some doc typo fixes.Martin Pool2003-02-181-68/+92
| |
| * Doxygen janitor. No other changes.Martin Pool2003-02-181-120/+119
| |
| * Add comment explaining the -DDEVELOPER safe_strcpy overflow hack.Martin Pool2003-02-171-1/+5
| |
| * This is a very nice way to detect pstrcpy() into a malloc()ed string, butAndrew Bartlett2003-02-171-0/+2
| | | | | | | | | | | | it really is a developer hack... Andrew Bartlett
| * This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett2003-02-172-18/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett
| * Set the length back to zero when we free the data_blob.Andrew Bartlett2003-02-171-0/+1
| |
| * Try to make our getgrouplist replacement better match the 'real' implemenations.Andrew Bartlett2003-02-171-4/+11
| | | | | | | | | | | | In particular, make sure we include the primary gid in the list. Andrew Bartlett
| * Remove obsolete file lib/netatalk.c - We have a VFS module nowJelmer Vernooij2003-02-151-155/+0
| |
| * Simplify some return values in gencache functions:Tim Potter2003-02-141-5/+5
| | | | | | | | | | | | | | | | | | | | - return ret == 0 ? True : False; + return ret == 0; and - return tdb_close(cache) ? False : True; + return tdb_close(cache) != -1;
| * Add FIXME about checking exit code for popen'd commands.Martin Pool2003-02-131-1/+4
| | | | | | | | Fix typo.
| * pull_ucs2_talloc() should pull to a char**, not a void**Andrew Tridgell2003-02-121-2/+2
| |
| * One more fix for the difference between FILE and X_FILE.Andrew Bartlett2003-02-081-1/+1
| |
| * Ensure we don't get problems between FILE and X_FILE buffers - always use theAndrew Bartlett2003-02-071-3/+3
| | | | | | | | | | | | x_ varient of the command. Andrew Bartlett
| * Samba janitor: adding mbp's umask patch :-).Jeremy Allison2003-02-071-79/+69
| | | | | | | | Jeremy.
| * make sure we don't run over the end of 'name' in unix_convert()Andrew Tridgell2003-02-071-2/+6
| | | | | | | | Thanks to Andrew Bartlett for spotting this.
| * Bitmap offsets and counts are always positive.Andrew Bartlett2003-02-011-1/+1
| |
* | Merge in the developer string options from HEAD. We need to ensure 3.0Jeremy Allison2003-03-183-151/+78
| | | | | | | | | | | | is as stable as possible in the string department and some pain now will help later :-). Jeremy.
* | Merge from HEAD - make winbindd locking sane again:Andrew Bartlett2003-03-171-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original message: This patch attemptes to clean up winbindd's mutex locking. The current locking scheme in winbind is a complete mess - indeed, the next step should be to push the locking into cli_full_connection(), but I'll leave it for now. This patch works on the noted behaviour that 2 parts of the connection process need protection - and independent protection. Tim Potter did some work on this a little while back, verifying the second case. The two cases are: - between connect() and first session setup - during the auth2 phase of the netlogon pipe setup. I've removed the counter on the lock, as I fail to see what it gains us. This patch also adds 'anonymous fallback' to our winbindd -> DC connection. If the authenticated connection fails (wbinfo -A specifed) - say that account isn't trusted by a trusted DC - then we try an anonymous. Both tpot and mbp like the patch. Andrew Bartlett
* | Merge from HEAD:Andrew Bartlett2003-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | - Make ReadDirName return a const char*. - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett
* | Mege from HEAD - doxygen.Andrew Bartlett2003-03-171-7/+7
| |
* | Merge from (earlier) HEAD - doxygen.Andrew Bartlett2003-03-171-6/+8
| | | | | | | | I'm not merging the current HEAD string stuff quite yet.
* | fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before ↵Gerald Carter2003-03-141-0/+16
| | | | | | | | dereferencing
* | adding some initiaial code to sert %a to Win2K3 (using Native LanMan string ↵Gerald Carter2003-03-121-0/+3
| | | | | | | | from .NET RC2)
* | Patch from Michael Steffens. In his own words :Jeremy Allison2003-03-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------- I think there are basically two problem: 1. Windows clients do not always send ACEs for SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, and SMB_ACL_OTHER. The function ensure_canon_entry_valid() is prepared for that, but tries to "guess" values from group or other permissions, respectively, otherwise falling back to minimum r-- for the owner. Even if the owner had full permissions before setting ACL. This is the problem with W2k clients. 2. Function set_nt_acl() always chowns *before* attempting to set POSIX ACLs. This is ok in a take-ownership situation, but must fail if the file is to be given away. This is the problem with XP clients, trying to transfer ownership of the original file to the temp file. The problem with NT4 clients (no ACEs are transferred to the temp file, thus are lost after moving the temp file to the original name) is a client problem. It simply doesn't attempt to. I have played around with that using posic_acls.c from 3.0 merged into 2.2. As a result I can now present two patches, one for each branch. They basically modify: 1. Interpret missing SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, or SMB_ACL_OTHER as "preserve current value" instead of attempting to build one ourself. The original code is still in, but only as fallback in case current values can't be retrieved. 2. Rearrange set_nt_acl() such that chown is only done before setting ACLs if there is either no change of owning user, or change of owning user is towards the current user. Otherwise chown is done after setting ACLs. It now seems to produce reasonable results. (Well, as far as it can. If NT4 doesn't even try to transfer ACEs, only deliberate use of named default ACEs and/or "force group" or the crystal ball can help :) ------------------------------------------------------------------------- Jeremy.
* | dlysym takes a const char *.Jeremy Allison2003-03-031-1/+1
| | | | | | | | Jeremy.
* | additional fix for CR 601Gerald Carter2003-02-271-0/+3
| | | | | | | | | | | | | | * distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients.
* | Doxygen merge from headMartin Pool2003-02-271-5/+6
| |
* | Merge 1.100 patch from HEAD:Martin Pool2003-02-271-8/+15
| | | | | | | | | | | | init_valid_table: Fix a memory leak that would lose the dynamically-created valid table every time the configuration was reloaded.
* | Merge from head. Move off-by-one buggy malloc()/safe_strcpy() combination to ↵Jeremy Allison2003-02-241-3/+1
| | | | | | | | | | | | strdup() instead. Jeremy.
* | Merge documentation from HEADMartin Pool2003-02-241-6/+13
| |
* | Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett2003-02-2410-235/+275
| | | | | | | | Andrew Bartlett