summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-02-04Always pass a TALLOC_CTX to str_list_make and str_list_copyVolker Lendecke2-13/+6
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
2008-02-04Simplify str_list_xxxVolker Lendecke1-111/+47
(This used to be commit d471dd4adb79d480c89436b2ed98f9ec6812aaa0)
2008-02-04popt: Use SMB_CONF_PATH environment var if no other configfile is set.Kai Blin1-3/+12
Now --configfile (or -s) will have precedence, if that's not given SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default value is used. Thanks to Michael for his comments. (This used to be commit 92a9c6c56fa90aead3b7f4a07bf4f3973ba23555)
2008-02-02Convert read_data() to NTSTATUSVolker Lendecke1-23/+2
(This used to be commit af40b71023f8c4a2133d996ea698c72b97624043)
2008-02-02Convert receive_smb_raw to NTSTATUSVolker Lendecke1-44/+7
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
2008-02-02read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke1-8/+7
(This used to be commit 90554799afa42855c3e7b87dc632e67f0952f988)
2008-02-02Get rid of read_socket_with_timeoutVolker Lendecke1-22/+23
(This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
2008-02-02Convert read_smb_length to return NTSTATUSVolker Lendecke1-18/+5
(This used to be commit 5750c3a51b4ddac635a98195d1621b24f91bad3f)
2008-02-02Convert read_smb_length_return_keepalive to return NTSTATUSVolker Lendecke1-36/+44
(This used to be commit 73a79a957a33a8761acf54598ce71e3604ecf3c5)
2008-02-02Convert read_smb_length_return_keepalive to read_socket_with_timeout_ntstatusVolker Lendecke1-2/+19
(This used to be commit 59e8f22f36be5a70fdb101964570ce7c10e8ff65)
2008-02-02Add read_socket_with_timeout_ntstatusVolker Lendecke1-23/+48
(This used to be commit 546ca0414aa1a9389e620b8f532224a3a19256d4)
2008-02-02Return NOTFOUND from db_tdb_delete if the record does not existVolker Lendecke1-2/+9
(This used to be commit 1ff924c4360952eb1d714a2f2ec3760b380c7a24)
2008-02-01NetBSD needs LD_LIBRARY_PATHVolker Lendecke1-0/+3
(This used to be commit d64b19e77aa499c1ee1aaf788ddf3d6fd36253e4)
2008-02-01Fix a typoVolker Lendecke1-1/+1
(This used to be commit 1efdef08ae19a01b03bf6730df1fb4a9a4a8aba0)
2008-02-01Ensure that convert_string_allocate() allocates 2 extraJeremy Allison1-6/+14
bytes and null terminates them to ensure NDR wire-reads of string types are always null terminated. Bug found by Volker after great pain :-). Jeremy. (This used to be commit aab736e6079729b3f3ab653674834e3f1305d456)
2008-02-01NetBSD does not support AI_ADDRCONFIGVolker Lendecke1-0/+7
(This used to be commit fb3f7f4046fa195baf5116598772d9016238637f)
2008-01-31Re-run make idl.Günther Deschner1-2/+2
Guenther (This used to be commit b658270518140c457536b0c7db06a646d7077529)
2008-01-31merged tdb transaction fixAndrew Tridgell1-0/+3
(This used to be commit 1a1c7954368a7f168a57f86f4f857cf70258e37a)
2008-01-29Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner1-3/+3
Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-27We need to leave the corepath aroundVolker Lendecke1-1/+0
In case we need to dump core, in line 191 we dereference corepath to be able to chdir there. Jeremy, please check! Volker (This used to be commit 3959b1954b02405ec174497fa17e345ca6d5ee94)
2008-01-27Adding missing calls to va_end().Tim Potter4-2/+16
Just a small commit to get a handle on this git thingy. This patch fixes some missing calls to va_end() to match various calls to va_start() and VA_COPY(). Tim. (This used to be commit ec367f307dff7948722b9ac97beb960efd91991f)
2008-01-25Tiny simplificationVolker Lendecke1-8/+7
(This used to be commit e78f6872bfc19ce0476b8d79c856a8d9c646a913)
2008-01-25Remove a pointless while loopVolker Lendecke1-11/+7
(This used to be commit f591bd68eafdbaefcaa95510cc4cb9a74cef0562)
2008-01-25Add LIBNETAPI_LOCAL_SERVER() macro.Günther Deschner1-0/+5
Guenther (This used to be commit 4bdcf07bcc3aaf7c3f7245cfdda06433bcf4ae60)
2008-01-25No need to close registry on libnetapi_free() anymore.Günther Deschner1-1/+0
Guenther (This used to be commit 6bf75652ef07f5a534cef5034b7aad4fdcbcd265)
2008-01-24More read_data -> read_socket_with_timeoutVolker Lendecke1-16/+3
(This used to be commit f1d7de462cf0f64648a3a1fc6f0c64a7bbdb3c2a)
2008-01-23read_socket_with_timeout has timeout=0 handlingVolker Lendecke1-38/+1
(This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)
2008-01-23strtok -> strtok_rVolker Lendecke2-16/+18
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23Fix tab_depth: it should not create an extra debug header.Michael Adam1-1/+1
In pstring removal 4ae4b23586, the behaviour of tab_depth was changed to create an extra debug header (by using the DEBUGLVL macro). This extracts the debug level check from DEBUGLVL into a macro CHECK_DEBUGLVL without the debug header creation and uses this instead of DEBUGLVL in tab_depth. Michael (This used to be commit cbc7d921fa696e6c3c5197ad9f87442ba679df82)
2008-01-22Move samba_extended_info_version to smbd/trans2.cVolker Lendecke1-32/+0
This is right now only used there, and in version.c it gave linker errors because some binaries (e.g. smbmnt) don't link in time.o (This used to be commit 1f0eaaa5911f893c822465a26fe49ab65afb0730)
2008-01-22Avoid use of uninitialized memoryVolker Lendecke1-1/+4
(This used to be commit 85123aacdb13e97c3f44aeded1c80e13af53d83d)
2008-01-22Get Samba version or capability information from WindowsCorinna Vinschen1-0/+29
On Jan 21 16:18, Danilo Almeida wrote: > Corina wrote: > > > + time_t samba_gitcommitdate; > > And: > > > + SIVAL(pdata,28,extended_info.samba_gitcommitdate); > > + memcpy(pdata+32,extended_info.samba_version_string,32); > > Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem. Right. I changed samba_gitcommitdate from time_t to NTTIME and shortened samba_version_string to 28 bytes. New patch below. Thanks, Corinna (This used to be commit 28aa1c199d3a22cda34afcaab49c0561eeb0abcb)
2008-01-22libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_tStefan Metzmacher1-0/+25
metze (This used to be commit 2f460915111066d79f5dc9b4ae4d003918d06852)
2008-01-21util_sock: Don't return a pointer to freed memory.Kai Blin1-1/+2
Fix a bug in my bugfix. Thanks to vl for spotting that one. (This used to be commit 24f68b90cca111256a7b03f7062cb57c2b08a0d6)
2008-01-21util_sock: Fix memcache bug in get_mydnsfullname.Kai Blin1-3/+3
get_mydnsfullname relied on memcache_add(); memcache_lookup() working. When run from ntlm_auth, the global_cache variable in memcache is NULL, so the add and lookup both fail. In that case, just return the result of the getaddrinfo call. Jeremy, please check. (This used to be commit 1db41ff52565e9f336a22fb9ffd80d51677e023b)
2008-01-21Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.cMichael Adam1-97/+0
This actually is a counterpart to reg_init_full, in that is does open and initialize the registry too, but only registeres the backends necessary to access the SMBCONF key. Michael (This used to be commit 01bda3ab359fb3868c1dc849044f613bf2bc563e)
2008-01-20Fix some "set but never used" warningsVolker Lendecke1-3/+1
(This used to be commit 4a6dadc5178f4861e9c032321939db3b639734b5)
2008-01-20Some systems do not have XATTR_ definedVolker Lendecke1-5/+0
(This used to be commit 2cac1d3919a96c480f34c93d8b9b07782d46ed23)
2008-01-19Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke1-0/+90
(This used to be commit d813bd9e02d9baf916eb96c478be89f0c435e07c)
2008-01-19Add an error mapping for ENOATTRVolker Lendecke1-0/+3
(This used to be commit 9f0d778490415b05224f36287df999672ee16928)
2008-01-19Use SAFE_FREE instead of freeVolker Lendecke1-1/+2
(This used to be commit 999647329028147d7c29a3348202641b3e03430e)
2008-01-19Tiny memory leak in lib/version.cCorinna Vinschen1-0/+1
Hi, while implementing the extra_info version stuff, it occured to me that samba_version_string() potentially allocates memory which is unused but never free'd. If SAMBA_VERSION_VENDOR_PATCH is defined, a second call to asprintf takes place. The result is stored in tmp_version. Afterwards, samba_version is set to tmp_version without free'ing samba_version first. Looks like a simple free(samba_version) is missing. Patch against 3.2-test below. Ok, this only happens once over the lifetime of the application, so it's no big deal, but I though it doesn't hurt to mention it. Corinna * lib/version.c (samba_version_string): Free samba_version before setting to tmp_version. (This used to be commit 373a23d48f2dd24e65dbf814ea58b4add2322128)
2008-01-19afs: Use talloc_stackframe() instead of talloc_init()Kai Blin1-1/+1
Thanks to vl for pointing this out. (This used to be commit 76cf5a979bf3014b1de660520e538546b3676b23)
2008-01-19util_str: Don't return memory from talloc_tos(), use mem_ctx instead.Kai Blin2-13/+16
(This used to be commit ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85)
2008-01-18Revert "Host SerNet-AIX has __ss_family instead of ss_family in ↵Stefan Metzmacher1-4/+0
sockaddr_storage" This reverts commit e33286f4a68352e55df081d06307f64f190773b3. 393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix for the same problem. metze (This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)
2008-01-18libreplace: Escape asterisk.Jelmer Vernooij1-1/+1
(cherry picked from commit df36c78549b40ee5e47d5cc79de2eb79f58c567a) (This used to be commit 174a45ec18fff064d89f6a12b044973ab3c10c54)
2008-01-18Try to fix the build on Tru64; avoid single quotes because they get expanded ↵Jelmer Vernooij1-1/+1
by perl in the build system. (cherry picked from commit bba8914af56cb161c275fbbdea2479d6f8bd703c) (This used to be commit a0e663ff2c6548e48c9710e3fb314f3bbabb59d0)
2008-01-18r26550: libreplace: fallback to __ss_family of struct sockaddr_storageStefan Metzmacher2-0/+29
metze (cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91) (This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
2008-01-18r26102: libreplace: remove system/printing.h as it only contains samba3 stuffStefan Metzmacher2-51/+0
metze (cherry picked from commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93) (This used to be commit ff8a001f0d3f2655efafed41f2f0b14552a5c7e7)
2008-01-18r25976: libreplace: not all platforms like _XOPEN_SOURCE=600Stefan Metzmacher1-2/+5
- Only use _XOPEN_SOURCE=600 on Tru64 - _OSF_SOURCE is also Tru64 specific metze (cherry picked from commit d19ab62081ce4ee4273ff752ad0443782a994826) (This used to be commit dbff70b2ebe7cc09f7fbe5a0319f978dfcfa1da9)