summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r4252: Comment clarification from Love Hörnquist Åstrand <lha@stacken.kth.se>.Volker Lendecke2004-12-171-3/+7
| | | | | | Thanks, Volker
* r4241: More *alloc fixes.Jeremy Allison2004-12-161-2/+7
| | | | Jeremy.
* r4236: More *alloc fixes.Jeremy Allison2004-12-161-6/+6
| | | | Jeremy.
* r4217: Fix open_any_socket_out.Volker Lendecke2004-12-151-13/+27
| | | | | | | | | This was a missing merge from HEAD or rather a commit to 3_0 from the wrong source. Fixed slightly over HEAD, HEAD merge will follow. Deal with connection refused according to the specs. Volker
* r4126: Fix from Björn Jacke <bjoern@j3e.de> for bugid #2040 - ensure the ↵Jeremy Allison2004-12-101-0/+9
| | | | | | | locale is reset to C to get ASCII-compatible toupper/lower functions. Jeremy.
* r4120: Never, ever, doubt valgrind :-). Fix order of evaluation bug that's ↵Jeremy Allison2004-12-092-12/+6
| | | | | | | been in the bitmap code for ever. Remove silly extra space in paranoid malloc. Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-0736-192/+355
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r4032: Fix bug #2110 - ensure we convert to ucs2 correctly.Jeremy Allison2004-12-022-12/+11
| | | | Jeremy.
* r4009: Fix from Timur Bakeyev <timur@com.bat.ru> for bugid #2100,Jeremy Allison2004-11-301-1/+4
| | | | | | | change the way we check for errors after a dlopen (which may set internal warnings which get picked up by mistake in dlsym). Jeremy
* r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use ↵Jeremy Allison2004-11-251-1/+1
| | | | | | | consistent enum type for Protocol extern. Jeremy.
* r3944: Fix the problem we get on Linux where sendfile fails, but we've ↵Jeremy Allison2004-11-241-2/+26
| | | | | | | | | | | already sent the header using send(). As our implementation of sendfile can't return EINTR (it restarts in that case) use an errno of EINTR to signal the linux sendfile fail after header case. When that happens send the rest of the data and then turn off sendfile. Sendfile should be safe to enable on all systems now (even though it may not help in all performance cases). Jeremy.
* r3940: typo.Günther Deschner2004-11-241-1/+1
| | | | Guenther
* r3857: Shut up gcc about erroneous "used uninitialised" warning.Jeremy Allison2004-11-181-3/+3
| | | | Jeremy.
* r3843: If a connection to a DC is requested, open connections ↵Volker Lendecke2004-11-181-0/+136
| | | | | | | | simultaeneously to all DCs found. The first one to reply wins. Volker
* r3705: Nobody has commented, so I'll take this as an ack...Volker Lendecke2004-11-122-13/+93
| | | | | | | | | | | | | | | | | abartlet, I'd like to ask you to take a severe look at this! We have solved the problem to find the global groups a user is in twice: Once in auth_util.c and another time for the corresponding samr call. The attached patch unifies these and sends them through the passdb backend (new function pdb_enum_group_memberships). Thus it gives pdb_ldap.c the chance to further optimize the corresponding call if the samba and posix accounts are unified by issuing a specialized ldap query. The parameter to activate this ldapsam behaviour is ldapsam:trusted = yes Volker
* r3702: This is a getpwnam-cache. It is mainly to speed up Samba with slow nssVolker Lendecke2004-11-121-0/+43
| | | | | | backends such as nss_ldap. Volker
* r3693: Correctly detect errno for no acl/ea support.Jeremy Allison2004-11-121-0/+20
| | | | Jeremy
* r3650: Allow to call spoolss-server as "localhost".Günther Deschner2004-11-101-1/+6
| | | | Guenther
* r3642: Extend vfs to add seekdir/telldir/rewinddir. Yes I know I have toJeremy Allison2004-11-091-0/+65
| | | | | | fix the modules too... First step in fixing out large directories problem. Jeremy.
* r3563: During a typical logon a modern workstation makes a lot of anonymous ↵Volker Lendecke2004-11-051-0/+4
| | | | | | | | | | | session setups on its way to open a pipe. This gets rid of many round-trips to the LDAP server during logon by setting up the server_info_guest once and not asking the LDAP server and nss every time. Make sure that the ldap connection is reopened in the child. (I did not look at the sql backends.) Volker
* r3561: Since we have tdb_reopen_all() after all forks, the local_pid logic ↵Volker Lendecke2004-11-051-4/+1
| | | | | | | | | | | is not correct anymore. If we actually open the tdb before the fork, we end up opening the tdb twice. Jerry, jra, this also happens in the locking and printing subsystems. You might want to check it there (not that it actually happens right now, but this gave me some confusion lately...). Volker
* r3049: fixing some calls in the printing code to stanard_sub_basic(); fix ↵Gerald Carter2004-10-181-3/+5
| | | | standard_sub_snum() to use the current user's gid; add some (snum == -1) checks to standard_sub_advanced()
* r2978: Fix #1926 typo in debug. Found by Bill McGonigle ↵Jeremy Allison2004-10-141-1/+1
| | | | | | <bill+samba@bfccomputing.com>. Jeremy.
* r2868: Well, I'm not quite sure what I'm doing back in Samba 3.0, but anyway...Andrew Bartlett2004-10-092-12/+63
| | | | | | | | | | | | | | | | | | | I've been grumbling about under-efficient calls in SAMR, and finally got around to fixing some of them. We now call sys_getgroups() (which in turn calls initgroups(), until glibc 3.4 is released) to figure out a user's group membership. This is far, far more efficient than scanning all the groups looking for a match, and is still the 'posix way', just using an effiecient call. The seperate issue of 'who is in this group' remains, but this one has been biting some people. I need to talk to VL about how best to exersise nasty corner cases, but my initial tests hold strong. (The code is also much simpiler than before, which has to count for something :-) Andrew Bartlett
* r2824: restored the is_case_sensitive option to ms_fnmatch() in Samba3. It isAndrew Tridgell2004-10-052-11/+22
| | | | | very rarely used, but we sohuldn't be removing a feature in a minor release of this kind.
* r2813: Fix the build.Rafal Szczesniak2004-10-031-1/+1
| | | | | | | | At least temporarily, since I've got the impression that _real_ fix is more complex... rafal
* r2778: merged the new samba4 ms_fnmatch code to Samba3. Thanks to RustyAndrew Tridgell2004-10-021-176/+131
| | | | Russel for some help in designing the new algorithm.
* r2768: BUG 1519: save the hostname used in the open_printer_ex() for later ↵Gerald Carter2004-10-011-7/+45
| | | | reuse when filling in the spolss replies (also gets rid of get_called_name()
* r2729: Fix ldapsam_compat homeDrive. Thanks to jason@env.leeds.ac.ukVolker Lendecke2004-09-281-1/+1
| | | | Volker
* r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASICJeremy Allison2004-09-261-0/+26
| | | | | | | | info level. Outputs data on the file in the same format the the stat command in Linux. Should be useful to people wanting to learn how to parse the UNIX extension output. Yes I will add the docs later :-). Jeremy.
* r2610: Even if we only use the fast-path (ascii only) thenJeremy Allison2004-09-241-0/+21
| | | | | we still need to set errno = E2BIG when we overflow. Jeremy.
* r2605: Fix stupid typo in back-port of Samba4 fix.Jeremy Allison2004-09-241-1/+1
| | | | Jeremy.
* r2599: avoid free()ing our static unalloceted memory that ends up in memory ↵Simo Sorce2004-09-241-1/+6
| | | | corruption.
* r2578: Pick up optimisation from Samba4 - thanks tridge !Jeremy Allison2004-09-241-0/+12
| | | | | | | | - I recently found out that charaters below 0x3F are guaranteed not to occur as secondary bytes in any multi-byte character set. This allows for a very simple optimisation in strchr_m() and strrchr_m(). It might be a good idea to pick this up for Samba3. Jeremy.
* r2444: Based on jmcd's patch, implement special lists for the ldap user ↵Volker Lendecke2004-09-201-0/+48
| | | | | | | | | | | | | attributes to delete. Richard, IMHO this is the better solution to the problem you currently have. Please review. Thanks, Volker
* r2392: Steal the nicer error message from Samba4 :-).Jeremy Allison2004-09-171-8/+12
| | | | Jeremy.
* r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.Jeremy Allison2004-09-151-5/+8
| | | | Jeremy.
* r2331: check password script code and example from trunkSimo Sorce2004-09-141-1/+122
|
* r2258: Attempt to fix Bug 1715. Not sure if all of ldapsam_compat works now, ↵Volker Lendecke2004-09-081-0/+7
| | | | | | | | but this definitely fixes two segfaults. Volker
* r2231: Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t ↵Paul Green2004-09-061-4/+4
| | | | type, which does not exist on all platforms.
* r2213: Optimisation. Passes masktest against W2K3.Jeremy Allison2004-09-031-0/+3
| | | | Jeremy.
* r2175: Fix for #1546 from fumiya@samba.gr.jp. Preserve errno in MB ↵Jeremy Allison2004-09-011-0/+6
| | | | | | strupper_m/strlower_m. Jeremy.
* r2163: converted samba3 to use the new utf-16 aware iconv code. Also changedAndrew Tridgell2004-09-011-64/+208
| | | | | | iconv to recognise UCS-2LE and UTF-16LE as synonyms, which means this change should be more robust when applied in trees that treat UCS-2LE or UTF-16LE as correct.
* r2160: fixed the uuid pack/unpack routines (they could go past the end of ↵Andrew Tridgell2004-09-011-52/+14
| | | | the UUID structure)
* r2155: Reformat, plus steal from Samba4 :-).Jeremy Allison2004-09-011-233/+259
| | | | | | | | | | | | | | | tridge: the lp_use_mmap() in map_file() is inappropriate for 2 reasons, so I have removed it. - lp_use_mmap() is really meant to cope with systems that have broken mmap coherence, but map_file() doesn't need coherence, as its maps read only - map_file() is used to map the charset files before loadparm has loaded, so lp_use_mmap() is always returning false for the major use of map_file() Jeremy.
* r2133: Several fixes:Gerald Carter2004-08-311-6/+2
| | | | | | | | | | | | | | | | | | | * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1 patch from Olaf Flebbe <o.flebbe@science-computing.de>. Will need to watch this one in the build farm. * Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED was getting reset by attempts to sanitize the defined attributes (PRINTER_ATTRIBUTE_SAMBA) * Resolve name conflict on DEC OSF-5.1 (inspired by patch from Adharsh Praveen <rprav@india.hp.com>) * Work around parsing error in the print change notify code (not that the alignment bug is still there but reording the entries in the array works around it). * remove duplicate declaration of getprintprocdir from rpcclient.
* r2114: Shameless theft of iconv commit from Samba4 to keep the two libs more ↵Jeremy Allison2004-08-302-29/+60
| | | | | | | | in sync :-). try to cope with a wider range of UTF-16 characters when we are using an external libiconv library. Jeremy.
* r2111: Fix memleak with valid names.Jeremy Allison2004-08-301-0/+1
| | | | Jeremy.
* r2070: Let's try to overload srnlen and strndup for AIX where they are natly ↵Simo Sorce2004-08-251-2/+2
| | | | broken.
* r2026: Simplify statcache to use an in-memory tdb. Modify tdb to useJeremy Allison2004-08-241-316/+0
| | | | | | a customer hash function for this tdb (yes it does make a difference on benchmarks). Remove the no longer used hash.c code. Jeremy.