1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

165 Commits

Author SHA1 Message Date
Volker Lendecke
e84d8b7015 Collecting another little patch from gd@suse.de
As broken as it might be, smbwrapper.so should be put into the
libdir and not bindir.

Volker
(This used to be commit d74137d227)
2003-12-26 21:33:53 +00:00
Tim Potter
17131bb446 Whoops - missed a place where HAVE_STAT_ST_{BLOCKS,BLOCKSIZE} guards
should be present.
(This used to be commit 08aa3f712c)
2003-11-02 04:14:25 +00:00
Jeremy Allison
bb0598faf5 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit d7e35dfb92)
2003-10-22 23:38:20 +00:00
Tim Potter
ec890d5c0f Enclose usage of st_blksize and st_blocks struct stat members in
#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 18adfdbe0c)
2003-10-14 03:56:42 +00:00
Jelmer Vernooij
eae6eb833b Patch from Guenther Deschner to fix build with gcc 3.2
(This used to be commit ab631b31fb)
2003-04-24 03:51:05 +00:00
Andrew Bartlett
db7b2e822f Parinoia for compleatly broken SMB servers that don't send back the right
fstype for IPC$ - assume the device type is IPC.

Andrew Bartlett
(This used to be commit 5ec7804212)
2003-04-23 10:07:25 +00:00
Andrew Bartlett
95af8e27b1 Make this safe for -DDEVELOPER checks.
Andrew Bartlett
(This used to be commit 39fb77d8c1)
2003-04-23 10:06:00 +00:00
Tim Potter
4b0d055106 Fix building --with-smbwrapper.
(This used to be commit 1fb5c92bfb)
2003-03-17 11:54:12 +00:00
Andrew Bartlett
251ea1e677 Merge minor library fixes from HEAD to 3.0.
- setenv() replacement
 - mimir's ASN1/SPNEGO typo fixes
 - (size_t)-1 fixes for push_* returns
 - function argument signed/unsigned correction
 - ASN1 error handling (ensure we don't use initiailsed data)
 - extra net ads join error checking
 - allow 'set security discriptor' to fail
 - escape ldap strings in libads.
 - getgrouplist() correctness fixes (include primary gid)

Andrew Bartlett
(This used to be commit e9d6e2ea9a)
2003-02-19 12:31:16 +00:00
Jeremy Allison
321f78b1b9 Fix smbwrapper from global* changes.
Jeremy.
(This used to be commit fcbf865162)
2002-11-13 21:47:59 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06)
2002-01-30 06:08:46 +00:00
Tim Potter
d248006357 Unused file.
(This used to be commit 78013c0ecc)
2002-01-30 05:49:20 +00:00
Tim Potter
585d0efbc6 Got medieval on another pointless extern. Removed extern struct ipzero
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 778f5f77a6)
2001-11-26 03:11:44 +00:00
Jeremy Allison
f146325e7d W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs.
Jeremy.
(This used to be commit 54c968913d)
2001-11-21 23:00:59 +00:00
Martin Pool
f741f65673 Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
(This used to be commit 79ec88f0da)
2001-11-19 02:49:53 +00:00
Tim Potter
5e0d7b6966 charset_initialise() doesn't exist anymore.
Why don't we build smbwrapper on a build farm machine to spot this sort of
thing earlier?
(This used to be commit 234943c066)
2001-10-17 00:11:02 +00:00
Simo Sorce
49307c2678 remove unused function in mangle.c
fix some alloc leaks spotted by andreas moroder.
(This used to be commit 39409a20f6)
2001-10-11 12:33:26 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Simo Sorce
61b2794968 move to SAFE_FREE()
(This used to be commit a95943fde0)
2001-09-17 11:25:41 +00:00
Andrew Tridgell
9bae3609ac fixed compilation error in smbw
(This used to be commit d1e9fb7778)
2001-09-16 03:49:15 +00:00
Gerald Carter
c045bd74cb merge from 2.2
(This used to be commit 0e4d2384de)
2001-09-14 15:19:15 +00:00
Andrew Tridgell
79139fe8d8 convert more code to use XFILE
(This used to be commit fe6679dffb)
2001-09-10 12:46:42 +00:00
Andrew Tridgell
b12a4dd9b6 declare dbf in one spot
(This used to be commit f41c3bb80f)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
b30e75692d replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
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 1af8bf34f1)
2001-09-10 11:08:57 +00:00
Simo Sorce
84f1ee32fa compile fix
(This used to be commit c53c5eca15)
2001-08-23 18:12:47 +00:00
Simo Sorce
2e783a4707 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
(This used to be commit fa8e55b8b4)
2001-08-12 17:30:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
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 debb471267)
2001-07-04 07:15:53 +00:00
Tim Potter
bda419be61 Grr - fixed compile error in smbwrapper stuff.
(This used to be commit 11a7c5e3d6)
2001-04-16 02:42:10 +00:00
Tim Potter
3e24c65101 Added a caching system to smbsh. Previously access to workgroup or server
directories under /smb generated net share enum or net server enum calls.
For large networks this could result in bad performance.  We now cache these
results and only call net * enums after the cache timeout has exceeded.
(This used to be commit 1e38eef54d)
2001-04-12 05:53:07 +00:00
Jeremy Allison
6578fd8742 To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
(This used to be commit 9b32b8a8cf)
2001-04-11 23:19:08 +00:00
Andrew Tridgell
751ba9d051 setup workgroup when found
(This used to be commit 33aefc76e8)
2001-02-20 10:13:48 +00:00
Tim Potter
b3ccabeece Fix for no master browser present.
(This used to be commit 24c78fdf5f)
2001-01-16 17:48:39 +00:00
Tim Potter
99f3694436 Compile fix for smbw_dir_add function.
(This used to be commit d7920a670b)
2001-01-15 17:46:02 +00:00
Richard Sharpe
dca808cbc4 Needed a callback arg on cli_list ...
(This used to be commit d45e667a74)
2001-01-05 13:11:29 +00:00
Tim Potter
e70b103fff Added extra argument to calls to smbw_share_add()
(This used to be commit d006e6adca)
2001-01-05 00:17:36 +00:00
Richard Sharpe
92ebc81734 I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
to modifiy any routine that calls it to pass NULL and so forth.

Should have no impact. It compiles OK.
(This used to be commit 7f862e387f)
2001-01-04 11:35:55 +00:00
Tim Potter
8bb17e9de5 Return an empty directory for a stat on a share we aren't allowed to
connect to.  This gives a permission denied when a cd is attempted, but
not a permission denied in the directory listing one level up.
(This used to be commit 9255e52624)
2001-01-02 23:42:36 +00:00
Andrew Tridgell
abb9a2de72 implemented a much nicer name_status() interface. It now returns a
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 f2be88a873)
2000-12-20 03:22:51 +00:00
Tim Potter
a56ca9e2a4 Added support for SERVICESF shared variable to change configuration file
used in lp_load().
(This used to be commit 4d80ee4f41)
2000-12-13 04:19:48 +00:00
Andrew Tridgell
452d050297 added support for browsing the list of workgroups at the top level in
smbw
(This used to be commit 8f97d59186)
2000-12-11 00:09:06 +00:00
Tim Potter
8f338ee3dd Fetch authentication info before actually using it.
(This used to be commit 600eb0eb00)
2000-11-11 01:21:31 +00:00
Tim Potter
ae7911e4d8 Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
(This used to be commit 644c78d64a)
2000-11-01 04:31:19 +00:00
Andrew Tridgell
d0f1bca957 added -L option
(This used to be commit ae80ca637c)
2000-07-06 03:39:11 +00:00
Andrew Tridgell
16e4503cca got smbw to compile again on Linux
(This used to be commit 614fd4119c)
2000-07-06 02:28:44 +00:00
Herb Lewis
a36d737c88 removed extra arguements from make_nmb_name calls
(This used to be commit d97f5d57d0)
2000-03-16 17:58:08 +00:00
Andrew Tridgell
3db52feb1f first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
(This used to be commit 453a822a76)
1999-12-13 13:27:58 +00:00
Tim Potter
0132160229 Return a (void *)0 instead of NULL in readdir64() wrapper.
(This used to be commit d78224a7d2)
1999-06-13 04:27:57 +00:00
Tim Potter
74e19e5b81 Return a #error if no functions could be found to wrap around.
(This used to be commit 36f9ce7993)
1999-06-13 04:26:58 +00:00
Luke Leighton
5a9859c7b0 removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
(This used to be commit 6d14db6a6c)
1999-01-29 19:31:52 +00:00