summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r4236: More *alloc fixes.Jeremy Allison1-10/+10
Jeremy. (This used to be commit 6b25a6e088390d33314ca69c8f17c869cec3904b)
2003-10-14Enclose usage of st_blksize and st_blocks struct stat members inTim Potter1-0/+8
#ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS, respectively. Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>. (This used to be commit 18adfdbe0c6ed79ba8ac07956b1e7abc226556c3)
2003-04-24Patch from Guenther Deschner to fix build with gcc 3.2Jelmer Vernooij1-6/+6
(This used to be commit ab631b31fbabc25cd74ca46fd583cd857538953c)
2002-11-13Fix smbwrapper from global* changes.Jeremy Allison1-3/+3
Jeremy. (This used to be commit fcbf865162562e359ca4be44a689506d54636e18)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-11-26Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter1-3/+2
and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
2001-11-21W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison1-1/+1
lookup uses password server parameter when looking for PDCs. Jeremy. (This used to be commit 54c968913d6553c6d834b068234ab176917075eb)
2001-11-19Store some path names in global variables initialized to configureMartin Pool1-3/+2
default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
2001-10-17charset_initialise() doesn't exist anymore.Tim Potter1-2/+0
Why don't we build smbwrapper on a build farm machine to spot this sort of thing earlier? (This used to be commit 234943c066f7cc549b84980cef51116f30f3f7c4)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-1/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-17move to SAFE_FREE()Simo Sorce1-16/+14
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
2001-09-16fixed compilation error in smbwAndrew Tridgell1-11/+1
(This used to be commit d1e9fb7778268a626b0550fa350d55d8eec7706e)
2001-09-14merge from 2.2Gerald Carter1-0/+2
(This used to be commit 0e4d2384dee905c730d011595337ff5ecc260a13)
2001-09-10declare dbf in one spotAndrew Tridgell1-1/+0
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell1-2/+2
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell1-2/+2
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell1-2/+0
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-02-20setup workgroup when foundAndrew Tridgell1-0/+1
(This used to be commit 33aefc76e8594196e09094f65e5aa0bbfe47f357)
2000-12-20implemented a much nicer name_status() interface. It now returns aAndrew Tridgell1-3/+13
list of structures rather than the dodgy parsing code we had before this also gets smbw working correctly with no initial workgroup (using name_status_find on __MSBROWSE__ returns) (This used to be commit f2be88a8738a39ca5c98936edb7537cd701348a1)
2000-12-13Added support for SERVICESF shared variable to change configuration fileTim Potter1-1/+4
used in lp_load(). (This used to be commit 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db)
2000-12-11added support for browsing the list of workgroups at the top level inAndrew Tridgell1-56/+67
smbw (This used to be commit 8f97d59186ee3b52f623d30dfb7b195ec721ec0c)
2000-11-11Fetch authentication info before actually using it.Tim Potter1-2/+2
(This used to be commit 600eb0eb0036631b7e6d8aa7cddbc378368c002c)
2000-11-01Added a authentication hook to smbwrapper which allows a (username,Tim Potter1-11/+46
workgroup, password) tuple to be provided by another function. (This used to be commit 644c78d64a6d7b7e44414c579de660321a0a6b34)
2000-07-06got smbw to compile again on LinuxAndrew Tridgell1-1/+2
(This used to be commit 614fd4119ce5aa37acd03321dc6ef263ae16bdc5)
2000-03-16removed extra arguements from make_nmb_name callsHerb Lewis1-3/+3
(This used to be commit d97f5d57d07b03c1df69099625b9d3faabe3f605)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-6/+9
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-01-29removed encrypt-password code pre-cli_session_setup(), session setupLuke Leighton1-6/+2
fn decides whether to encrypt password or not. (This used to be commit 6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8)
1999-01-27- got client code cleartext passwords working again in cli_session_setup.Luke Leighton1-2/+6
needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c (This used to be commit 2a509e9606f8aefbefa6e7b49878726464dbed44)
1998-11-17Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1-1/+1
Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy. (This used to be commit 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac)
1998-11-13fixes for OSF1 compilationAndrew Tridgell1-0/+6
(This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e)
1998-11-09Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1-2/+2
client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy. (This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
1998-10-24handle the case of an intermediate binary not loading smbwrapper.soAndrew Tridgell1-2/+1
(for example /usr/bin/man because it is setgid). (This used to be commit 85f639ab2ba72dda5a00cf11c8ee705f5a51ec54)
1998-10-24volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1-1/+3
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before. (This used to be commit 2565ccf9de9d5e80fdb5bcadbc7130faba386d95)
1998-10-24make sure that apps can't close one of the internal smbw fileAndrew Tridgell1-2/+19
descriptors by catching close attempts on those fds and returning EBADF. (This used to be commit 9d863fb1681a5b03696552e1d93fe339b4bae455)
1998-10-23fixed problems with PWD - we no longer use the PWD env variableAndrew Tridgell1-6/+14
instead the shared variable area is used. this fixes problems with /bin/sh under solaris (This used to be commit 4eb7b5c6a81447755dfa1be27479027333ed6f26)
1998-10-20removed setenv(), replaced with smbw_setenv()Andrew Tridgell1-0/+1
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)
1998-10-20smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirectorJeremy Allison1-3/+3
has some *horrible* bugs ! smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings. Jeremy. (This used to be commit 76448d1d82a78520953c662afee0886122ce134b)
1998-10-19added command line options to smbshAndrew Tridgell1-0/+6
(This used to be commit 9b249c075e53e6cf75399d60a6371648c03104fa)
1998-10-19- don't use env variables for passwords and usernames (yeah!)Andrew Tridgell1-15/+36
- added a shared variable area based on a unlinked open file, and implement a general get/set interface to it - cache hostname lookups and master ip lookups in shared variable area (This used to be commit 279cbe69efd75450113d2da0da5e67b29f3702b1)
1998-10-17Small tidyups for gcc in 'preen' mode....Jeremy Allison1-0/+4
Jeremy. (This used to be commit 60dc1a4a00a22088d33369588b0d5eb292cf084a)
1998-10-16changed some debug levelsAndrew Tridgell1-3/+8
(This used to be commit 121e321a12c5da5cb44ca1baece7e25c3ab7f943)
1998-10-16Re-added code to tell the user how many open files theyJeremy Allison1-1/+1
have. Needed for server diagnosis purposes... Jeremy. (This used to be commit 04d79a9ae515e7259277f9980552f1d61df239f1)
1998-10-14tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of codeLuke Leighton1-0/+2
that didn't have _STAT_VER_LINUX_OLD defined. maybe you want to sort this out properly... (This used to be commit aa9dd697d41ed5bed1bddab519ea80df9e6f21f1)
1998-10-09dce/rpc.Luke Leighton1-1/+1
(This used to be commit e0445419b2d50ae6efef36f4f295ebcfdbf1ad82)
1998-10-08dce/rpcLuke Leighton1-1/+1
(This used to be commit 62fdeef1b79c5c4c9bf0e860881651711bb80b9a)
1998-10-08- fixed a bunch of warnings and minor errorsAndrew Tridgell1-1/+1
- got smbtorture to compile - removed %D from some of lukes code - Luke, what is %D? it ain't portable anyway (This used to be commit 91597c12fb593f49b23c7cea5b64dbb89a0428b3)
1998-10-07don't prototype the acl() functionsAndrew Tridgell1-5/+5
(This used to be commit 9efbb21f35aca6f86ed3cb9c58ebec40e5d44b90)
1998-10-07restore errno after smbw initialisationAndrew Tridgell1-0/+5
(This used to be commit f374706cbf654bdb33df3074cb1a8101af0201eb)
1998-10-07- updated docs to say OSF1 worksAndrew Tridgell1-2/+2
- more solaris acl fixes (This used to be commit 8fc7bc0ee6919f2c1d438e924fbb8b44f87dee63)
1998-10-07yet another attempt at making this stuff portable. This time I useAndrew Tridgell1-0/+109
minimal includes in wrapped.c (This used to be commit fd6a59d8ca0932d61a60b74485841001d4f8fd44)