1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

682 Commits

Author SHA1 Message Date
Jeremy Allison
255c2adf7b Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
2007-11-05 11:12:56 -08:00
Volker Lendecke
5b8ca7ebde Fix the smbmount build 2007-11-05 03:18:52 +01:00
Jeremy Allison
35aaa36f82 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
2007-11-03 22:34:46 -07:00
Jeremy Allison
81ca5853b2 Change the client library to write directly out of
the incoming buffer in the non-signed case. Speeds
up writes by over 10% or so. Complete the server
recvfile implementation.
Jeremy.
2007-11-02 12:21:34 -07:00
Jeremy Allison
52f13d8495 Add printout of large read/write caps if detected.
Jeremy.
2007-10-31 14:12:50 -07:00
Jeremy Allison
2e92418a13 Change all occurrences of zero_addr(&ss,AF_INET) to
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
2007-10-27 20:29:36 -07:00
Jeremy Allison
9f82a57669 Fix zero_addr(&ip, INADDR_ANY); -> zero_addr(&ip, AF_INET)
from Volker's patch.
Jeremy.
2007-10-27 12:51:38 -07:00
Volker Lendecke
e17d3e10e8 Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
2007-10-27 12:50:36 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günter Kukkukk
29eb4d0e2d Latest ipv6 changes broke (deprecated) smbmount, smbmnt and smbctool
In addition some cleanup has been done to avoid compiler warnings.
2007-10-15 12:31:21 +02:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Steve French
0202a84e3f r25355: IP address parsing did not allow for fully expanded ipv6 addresses
(which can be 12 bytes longer than we were allowing for).

Thanks to Dr. David Holder
2007-10-10 12:31:00 -05:00
Volker Lendecke
1a02226700 r25169: Fix bug 4028 2007-10-10 12:30:48 -05:00
Lars Müller
12cb06d6ad r24601: Fix if statements where we still expected cli_connect() to return BOOL. 2007-10-10 12:30:09 -05:00
Volker Lendecke
4863ff2899 r24223: Convert reply_echo to the new API 2007-10-10 12:29:17 -05:00
Jeremy Allison
cd66c133a1 r24036: Fix dfs rename bug in smbclient reported by Thomas Bork <tombork@web.de>.
Couldn't rename file as we weren't DFS enabling the target path.
Jeremy.
2007-10-10 12:28:58 -05:00
Volker Lendecke
4cdfc88754 r23989: For testing purposes, add "echo" to smbclient 2007-10-10 12:28:52 -05:00
Günther Deschner
c254c5e254 r23825: Add ".." command as an alias to "cd ..".
Guenther
2007-10-10 12:28:30 -05:00
Günther Deschner
cdec09956c r23824: Add ls alias for lazy typers like me.
Guenther
2007-10-10 12:28:30 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
4896b4ee55 r23596: Add notes about smbfs/cifs to usage() in smb[u]mount 2007-10-10 12:23:34 -05:00
Simo Sorce
d2846e6b90 r23571: Fix, parsing of multi byte share names.
Thanks to SATOH Fumiyasu
Fixes 4720

Jerry,
this is a showstopper for 3.0.25b, please grab it into
SAMBA_3_0_RELEASE before cuting the tarballs.

Simo.
2007-10-10 12:23:30 -05:00
Volker Lendecke
f2050f5a3a r23567: Fix bug 4721 2007-10-10 12:23:30 -05:00
Jeremy Allison
073fdc5a58 r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
Long overdue fix....
Jeremy.
2007-10-10 12:23:28 -05:00
Simo Sorce
9dcbef9615 r23527: Use existing escaping function pointed by James 2007-10-10 12:23:25 -05:00
Simo Sorce
54ca011212 r23524: Fix bug 2319.
Got report this is all ok form a tester. Close a loong
standing bug preventing people to freely use any character
in their password when printing via cups were involved.
2007-10-10 12:23:25 -05:00
Steve French
500d9236c4 r22982: Do not prompt for password on sec=none for mount.cifs (and allow guest
option to pass to kernel code so it can know when to retry)
2007-10-10 12:22:13 -05:00
Steve French
c8aa60692b r22979: Revert previous checkin (which had some debug junk) and fix misc frees that
valgrind noticed
2007-10-10 12:22:13 -05:00
Steve French
9af97d8ead r22779: Patch for not prompting for password on cifs mounts when "sec=none"
specified
2007-10-10 12:21:56 -05:00
Steve French
4616c29b9f r22560: Clean up frees of realloc memory in mount.cifs (thanks to Alex for
reminding me how to use Valgrind).
2007-10-10 12:19:45 -05:00
Steve French
0548dea6c7 r22526: Support deep tree mounts after share (instead of having to specify
prepath)
2007-10-10 12:19:42 -05:00
Jeremy Allison
7b89a5de57 r22354: Make client select krb5 encrpyt if krb5 already on.
Jeremy.
2007-10-10 12:19:28 -05:00
Jeremy Allison
f1b22c9527 r22155: Fixed warning #4498 from jason@ncac.gwu.edu.
Jeremy.
2007-10-10 12:19:17 -05:00
Simo Sorce
1a3980f1fc r22002: Fix bug #3974, there are still open issues with -N behavior (doc fix next)
and -T argument parsing behavior (which is just insane but a separate bug)
2007-10-10 12:18:59 -05:00
Stefan Metzmacher
fa322f0cc9 r22001: change prototype of dump_data(), so that it takes unsigned char * now,
which matches what samba4 has.

also fix all the callers to prevent compiler warnings

metze
2007-10-10 12:18:59 -05:00
Jeremy Allison
8f113ad191 r21992: Fix keepalive processing when encryption turned on.
Jeremy.
2007-10-10 12:18:58 -05:00
Jeremy Allison
c7153411f1 r21901: Don't use fstrcat when you mean fstrcpy. Doh !
Jeremy.
2007-10-10 12:18:47 -05:00
Jeremy Allison
73f7c6cef8 r21898: Added test command, fixed first valgrind bugs.
Now to investigate why it doesn't work :-).
Jeremy.
2007-10-10 12:18:47 -05:00
Steve French
bd9439cc7d r21840: mount.cifs compile on old libc missing bind mount #define
Thanks to Thomas Jarosch for pointing this out.
2007-10-10 12:18:37 -05:00
Jeremy Allison
1c9e10569c r21768: Fix the client dfs code such that smbclient can
process deep dfs links (ie. links that go to non root
parts of a share). Make the directory handling conanonical
in POSIX and Windows pathname processing.
dfs should not be fully working in client tools. Please
bug me if not.
Jeremy.
2007-10-10 12:18:30 -05:00
Jeremy Allison
6dd5f0ef0f r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclient
right now.
Jeremy.
2007-10-10 12:18:27 -05:00
Jeremy Allison
62a5c22a13 r21734: Fix bug #4369. Patch from David Leonard <dleonard@vintela.com>.
Jeremy.
2007-10-10 12:18:27 -05:00
Jeremy Allison
8f3d530c5a r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
2007-10-10 12:18:24 -05:00
Herb Lewis
5a7330cfe4 r21657: get rid of warning - not everyone understands %F 2007-10-10 12:18:22 -05:00
Jeremy Allison
9858e5b725 r21641: Add test code for POSIX pathname calls into smbclient.
Jeremy.
2007-10-10 12:18:20 -05:00
Steve French
529d64b4c8 r21283: Do not display away debug output of cifs dfs resolver by default
per Dave Howell's suggestion
2007-10-10 12:17:54 -05:00