1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

273 Commits

Author SHA1 Message Date
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.
-
Jeremy Allison
cf05709ec3 Tar fixes from Craig Barratt craig@arraycomm.com.
Jeremy.
-
Gerald Carter
d2949468dc fixed typo
jerry
-
Gerald Carter
e291500903 added -A <authfile> option to smbclient for the reading of username /
password credentials from a file.



--jerry
-
Andrew Tridgell
b28cc4163b Linux kernel oplocks now seem to work, but need a _lot_ of testing
I had to modify sys_select() to not loop on EINTR. I added a wrapper
called sys_select_intr() which gives the old behaviour.
-
Andrew Tridgell
a85ae6e0ae and yet another memory leak - this one in the client -
Jeremy Allison
148628b616 Added sys_fork() and sys_getpid() functions to stop the overhead
of doing a system call every time we want to just get our pid.
Jeremy.
-
Andrew Tridgell
03e9cea004 - removed all our old wildcard matching code and replaced it with a
call to ms_fnmatch(). This also removes all the Win9X semantics stuff
and a bunch of other associated cruft.

- moved the stat cache code into statcache.c

- fixed the uint16 alignment requirements of ascii_to_unistr() and
  unistr_to_ascii()

- trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as
  unicode always (at least thats what NT4 does)

- fixed some errors in the in-memory tdb code. Still ugly, but doesn't
  crash as much
-
Jeremy Allison
4673aa1a4b Fix for names with spaces and some I18N filename issues from
V. Fyodorov <V.Fyodorov@VAZ.RU>.
Jeremy.
-
Jeremy Allison
9f6ad04676 client/client.c:
libsmb/clientgen.c: Fixes for Win2k smbclient browsing.
Other fixes implement smbpasswd -x user to delete users. Also allows swat
to do the same.
Jeremy.
-
Jeremy Allison
84b045cbc8 Fixed code page conversions of messages outgoing/incoming.
Jeremy.
-
Jeremy Allison
e5a3deba46 Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function
is called several *million* times during a NetBench run :-).
Jeremy.
-
Andrew Tridgell
e21aa4cb08 cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.
After fixing that I needed to use O_RDWR instead of O_WRONLY in
several places to avoid the silly bug in MS servers that doesn't allow
getattrE on a file opened with O_WRONLY
-
Andrew Tridgell
b563be824b this looks like a big commit, but it isn't really :)
This fixes our netbios scope handling. We now have a 'netbios scope' option
in smb.conf and the scope option is removed from make_nmb_name()

this was prompted by a bug in our PDC finding code where it didn't append
the scope to the query of the '*' name.
-
Jeremy Allison
9ba8ad1d3d Fixed spurious error message when doing a 'put' of an empty file.
Jeremy
-
Jeremy Allison
9e90122afd client/client.c: I18N fixes.
smbd/dir.c: Reformatting comments.
smbd/ipc.c: New password change code for Win98.
Jeremy.
-
Andrew Tridgell
6d506ee641 changed %g to %3.1f to be friendly to our poor snprintf() code -
Andrew Tridgell
599a7e7f9e client/smbspool.c from 2.0.6 -
Andrew Tridgell
d7b2087865 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files that were in the head branch but weren't in SAMBA_2_0 -
Andrew Tridgell
453a822a76 first pass at updating head branch to be to be the same as the SAMBA_2_0 branch -
Luke Leighton
e4d92ff9df sys_select added one more argument (read, write selectors). -