1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

293 Commits

Author SHA1 Message Date
Simo Sorce
b7edd55885 introduce SAFE_FREE() macro as suggested by andreas moroder. -
Andrew Bartlett
5b369bce69 Fix compile warnings on IRIX's cc. -
Andrew Tridgell
f41c3bb80f declare dbf in one spot -
Andrew Tridgell
1af8bf34f1 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.
-
Andrew Tridgell
160906b57d fixed typo -
Andrew Tridgell
0742342ec4 removed pointless parameter from readfile() -
Andrew Tridgell
266d8e6766 added "display charset" option in smb.conf, along with d_printf()
which should now be used instead of DEBUG(0) or printf() for
interactive messages

I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
-
Andrew Tridgell
dcd6e735f7 the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work -
Andrew Tridgell
22b372f8a7 fixed handling of 139/445 in clients -
Andrew Tridgell
3eba9606f7 a bunch of fixes from the sflight to seattle
in particular:
 - fixed NT status code for a bunch of ops
 - fixed handling of protocol levels in ms_fnmatch
-
Simo Sorce
fa8e55b8b4 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.
-
Simo Sorce
7f33c01688 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
-
Tim Potter
ad0cbfbd79 Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
-
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
Andrew Tridgell
debb471267 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.
-
Jeremy Allison
8d1dab74c2 Applied Michael Sweet's patch, with one minor signal change.
Jeremy.
-
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
-
Andrew Tridgell
78f448b7d4 removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen
-
Andrew Tridgell
5dac4cdee4 new mput code from idra that doesn't need a call to find -
Jeremy Allison
956201c4fb More gcc compile on solaris tidyups.
Jeremy.
-
Andrew Tridgell
67aa587eb2 a couple of minor merges from 2_2 -
Tim Potter
d05c3cf0f4 Getting medieval with compiler warnings as Jeremy puts it. -
Jeremy Allison
83aa762058 Fix from Tony Butt - shouldn't set got_pass for -c option.
Jeremy.
-
John Terpstra
8051406588 Patch from Mandrakesoft to ensure we close all files. -
Jeremy Allison
9b32b8a8cf 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.
-
Jeremy Allison
94747b4639 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
-
Jeremy Allison
0c9a92a055 Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.
Jeremy.
-
Jeremy Allison
799e043ae3 Missed a cli_set_port on message code connect.
Jeremy.
-
Andrew Tridgell
386fdff2df added basic command completion support -
Andrew Tridgell
7940b6b0cf much simpler readline code
should work with readline 2.x
-
Andrew Tridgell
e1487eb2c4 much better readline support from Simo Sorce, with some mods from me
to make it a bit simpler
-
Jeremy Allison
4e76f33869 Updates for CUPS 1.1 from Michael Sweet.
Jeremy.
-
Jeremy Allison
d0fcd91443 Sync up Urbans changes from 2.2 into HEAD.
Jeremy.
-
Jeremy Allison
0cd37c831d Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
-
Richard Sharpe
ad3a21b281 Fixes to testsmbc to ensure it will compile on SGI ... -
Andrew Tridgell
69c13434f6 the -m option to the client is back -
Richard Sharpe
d7f3793a2b Fix a small problem where tree.c was using the creation time to display, rather than modification time. Creation time is not returned by the SMB protocol. -
Richard Sharpe
3e8366c58c Improve the sample GTK+ client program to make it a bit more functional. -
Jeremy Allison
d938ad6963 Excise snprintf -> slprintf.
srv_samr.c: duplicate gid fix.
srv_spoolss_nt.c: Merge of JF's work.
uid.c: Fix for returning names when a PDC.
Jeremy.
-
Richard Sharpe
244edad065 Fix calls to smbc_init in testsmbc.c and tree.c -
Anton Blanchard
b91f906467 io_bufsize was set too large and so full length reads
and writes got broken up into one ~64k and one ~1k packet.
-
Richard Sharpe
5629b097d4 Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly.
-
Richard Sharpe
7f559c1a73 Many bug fixes to the libsmbclient.c code plus
- an implementation of smbc_readdir
  - extensions to tree.c to show files in a second window
  - changes to auth_fn to provide buffers for username, password, etc
    from caller rather than callee
-
Richard Sharpe
0490a0ed10 Update the tree.c GTK+ App so it can walk down directories etc ... -
Richard Sharpe
d6cef8877a Fix some more bugs in libsmbclient.c and add functionality to tree.c -
Richard Sharpe
606c4aecea Fix a minor problem with listing servers in a workgroup and add a
gtk+ test application that tests out some of this stuff ...
-
Richard Sharpe
38ff91c505 The latest changes to libsmbclient ...
It can now do a directory listing for workgroups, servers, and shares, and,
with a bit more effort, it will be able to list directories and files.

I also does not request a username and password for the IPC$ share, but it
should if the first attempt to connect fails.
-
Richard Sharpe
d45e667a74 Needed a callback arg on cli_list ... -
Richard Sharpe
7f862e387f 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.
-
Richard Sharpe
51c0436a50 First pass at the libsmbclient code ...
This code handles the basic stuff and compiles and links under Linux, but
I do not know about any other operating systems. Now onto directory
listing routines, including those that list workgroups, servers, etc.

Nothing is built automatically yet, you have to make client/testsmbc to build
the library and test program. Also, no make install targets are defined for
libsmbclient.so as yet, either.

Would be good if people test on operating systems other than Linux.
-