summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2004-03-12Fix problems with very long filenames in both smbd and smbclient.Alexander Bokovoy1-37/+37
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there. As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics. (This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
2004-03-11BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use ↵Gerald Carter1-29/+19
strchr_m() for query_host (smbclient -L) (This used to be commit bc6992c4bffed043dd8ad58d721202091cd14cd3)
2004-03-03Added client "hardlink" commant to test doing NT rename with hard links.Jeremy Allison1-12/+6
Added hardlink_internals() code - UNIX extensions now use this too. Jeremy. (This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
2004-03-03Use a common function to parse all pathnames from the wire. This allowsJeremy Allison1-3/+43
much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
2004-03-01BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct ↵Gerald Carter1-4/+4
truncation of share names and workgroup names (This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)
2004-02-12Commit Andrew Bartlett's interesting patch to smbclient that allows forRichard Sharpe1-1/+57
multiple logins and changing vuids. I fixed up a couple of variables so it actually works. We want to use this to test our multiple SIDs in the kernel changes etc. (This used to be commit 4df824d38bd7673b27dd7d7f880420e78a136032)
2004-02-11BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in ↵Gerald Carter1-9/+9
cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions (This used to be commit 60eb69ff64cc9836072f8f3894e8bc685dc7466a)
2004-01-16Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) toVolker Lendecke1-14/+34
smbclient -L to make the output usable in pipes. Volker (This used to be commit 4c904210705f2be16daad21c07a4fb5117a3360b)
2004-01-15* BUG 446Gerald Carter1-1/+2
- setup_logging() in smbclient to be interactive (remove the timestamps) - Fix bad return value in pull_ucs2( needs more testing to make sure this didn't break something else) that caused clistr_pull() to always read the same string from the buffer (pull_usc2() could return -1 if the original source length was given as -1) - increment some debugging messages to avoid printing them out so often (This used to be commit 79fe75dcdf6cc38e18ca1231e4357893db4d4a08)
2003-11-04Fix crash bug in smbclient completion. Closes bug #659.Tim Potter1-3/+2
(This used to be commit 4480058d85ebe9175c4720c18100b459877dbd07)
2003-09-05More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison1-1/+1
as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-08-25fix bug #39; save the -W value and restore it after lp_load()Gerald Carter1-1/+18
(This used to be commit 79efe7d72ba503b58c8ad3b9b1c711f5ebb33521)
2003-08-20metze's autogenerate patch for version.hGerald Carter1-1/+1
(This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
2003-08-15get rid of more compiler warningsHerb Lewis1-2/+2
(This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
2003-08-15get rid of const as these things really are not constHerb Lewis1-2/+2
(This used to be commit 61bea183a229cc11f25c4a7cb5341faad9833d7b)
2003-08-14Don't ask twice for the passwordVolker Lendecke1-0/+1
(This used to be commit 8ebd92da01a72b26df769125f51934796e9e3d4f)
2003-08-10We get the server and workgroup list only over port 139. Fall back to thatVolker Lendecke1-0/+16
and if NetBIOS over TCP/IP is disabled, give an error message. Fixes Bug #284 Volker (This used to be commit a2902a6cf8d05569d1c690436f69b4a4cedac400)
2003-08-06Ensure smbclient obeys -s smb.conf option.Jeremy Allison1-6/+16
Jeremy. (This used to be commit 7950f7d6b2c5e8247bce1e96ddd1a9ec1045f7f9)
2003-08-06Anal formatting tidyup :-).Jeremy Allison1-181/+198
Jeremy. (This used to be commit 9c0197471366ad1acf922e02bb694769863054a6)
2003-08-01Fix the option processing for smbtar. Does no one check this !Jeremy Allison1-4/+20
Jeremy. (This used to be commit c4af1ec73584656fb9d2b372461da4748e1643f1)
2003-07-30Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison1-0/+2
connections. Overrides smb.conf parameter if set. Jeremy. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
2003-07-23convert snprintf() calls using pstrings & fstringsGerald Carter1-2/+2
to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent. (This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
2003-07-18fixed the pstrcpy() bug in directory recursion properlyAndrew Tridgell1-1/+2
(This used to be commit 132d6fdf635eb2bf2a1afd6e850d0f6967260f84)
2003-07-17Fix for bug 222 from Marcin Owsiany.Tim Potter1-0/+5
Don't get stuck in an infinite loop listing directories recursively if the server returns an empty directory name. This can happen with incorrect i18n configuration on a Samba server. (This used to be commit f93a2831f1b4e5751ca86d46a6e5ede9adf660cb)
2003-07-17Don't use pstrcpy on non-pstrings.Tim Potter1-1/+1
(This used to be commit 3498624d941fe200b06f114ece3373d4c4cfb2d1)
2003-07-03Removed strupper/strlower macros that automatically map to ↵Jeremy Allison1-2/+2
strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-07-02Suggest the user runs kinit if smbclient -k returns ↵Tim Potter1-0/+4
NT_STATUS_MORE_PROCESSING_REQUIRED. (This used to be commit 66c4beb28672ef335ff4d6d6a3447e4c2c337f76)
2003-06-11several places in client.c rely in commands[i].name == NULL being aAndrew Tridgell1-2/+2
termination condition for checking for commands. Make sure the last element is indeed NULL. (This used to be commit 294f79884df1ebc4a8d955601e7547bdcadef5d6)
2003-06-11i'm getting rather sick of thisAndrew Tridgell1-4/+1
********************************************************** **** PLEASE TEST YOUR CHANGES BEFORE CHECKING THEM IN **** ********************************************************** Jelmer, your change did not fix the -b option, it just make it not segfault on debian. It did however add a warning and make it not compile on some systems. It also gave the io_bufsize the value of a pointer, not the value the user specified. (this doesn't apply just to Jelmer, I'm just seeing rather too many checkins from everyone lately where the code could never have possibly worked, so was obviously checked in without testing) (This used to be commit 21931ad7a0584c14fd0278adc74eab9cacf14a3d)
2003-06-10Don't segfault when -b is specified (fixes debian bug #196833)Jelmer Vernooij1-1/+1
(This used to be commit 4af9074397bbb208e585f85aaa8a6e402057ebdd)
2003-05-29Don't crash when doing namecompletion in smbclient. Fixes debian bug #194776Jelmer Vernooij1-1/+1
(This used to be commit f130b4f2a143ef7507d7267ec12a11c1d91f0457)
2003-05-13Fix non-constant initialiser for Sun CC.Andrew Bartlett1-1/+7
(This used to be commit c2948b9248016388f9b7c5595b0e1aba7e1ace8d)
2003-05-12And finally IDMAP in 3_0Simo Sorce1-23/+164
We really need idmap_ldap to have a good solution with ldapsam, porting it from the prvious code is beeing made, the code is really simple to do so I am confident it is not a problem to commit this code in. Not committing it would have been worst. I really would have been able to finish also the group code, maybe we can put it into a followin release after 3.0.0 even if it may be an upgrade problem. The code has been tested and seem to work right, more testing is needed for corner cases. Currently winbind pdc (working only for users and not for groups) is disabled as I was not able to make a complete group code replacement that works somewhat in a week (I have a complete patch, but there are bugs) Simo. (This used to be commit 0e58085978f984436815114a2ec347cf7899a89d)
2003-05-10Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij1-2/+0
(This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
2003-05-10Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij1-0/+2
that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in. (This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
2003-05-10Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87)
2003-04-28Replace workgroup global variable with lp_workgroup()Tim Potter1-10/+8
Call lp_load() before parsing command line options so we can override the workgroup value with the -W switch. Fixes bug #39. (This used to be commit 56f070cd5242ac6c10699ca35726ce68199dd274)
2003-04-14Merge:Tim Potter1-360/+79
- Jelmer's popt changes (This used to be commit b5b6f11940c91dc5ecb5f4a4320e7b9aa72bcd99)
2003-03-18Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett1-3/+3
This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett (This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18Fix segfault on FD_SET() when we have an fd of -1Andrew Bartlett1-0/+3
Andrew Bartlett (This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)
2003-03-18Add const.Andrew Bartlett1-1/+1
(This used to be commit ed245023016779700571d108e7b9339236bcbe7c)
2003-02-24Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a shareAndrew Bartlett1-19/+9
twice, let the libsmb code determine what form the share name should take. Andrew Bartlett (This used to be commit a25f6126647c94551c03bfc28e3fb5ec5ef6264a)
2003-02-07Samba janitors: applying mbp's redundant umask fix.Jeremy Allison1-4/+0
Jeremy. (This used to be commit b54f6bf06c6a4032ba0d6c2a25699948685ccf6a)
2003-01-14Merge from HEAD:Andrew Bartlett1-4/+4
- fstring/pstring mixups - the detection code that found them (disabled) - a bit of whitespace - a static Andrew Bartlett (This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-07Added code to the handling of the -M option to ensure that we default toChristopher R. Hertel1-1/+7
port 139 for that option. The NetBIOS Messenger Service doesn't run on a non-NBT port. (This used to be commit a10195b7112b0a7cca3ddb5be2566364c59fefb7)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-2/+2
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2002-12-05fix stat reporting on put commandHerb Lewis1-1/+1
(This used to be commit aa38aaf36338a2c9e708410d6b1befa6d65c93cc)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-12/+7
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-09Sync with HEADJelmer Vernooij1-4/+4
(This used to be commit 1a25dc776ddc36de9a214e023becff1ceb10290c)
2002-10-29Sync with HEADJelmer Vernooij1-1/+0
(This used to be commit 987b62137d38fc295dab75bdbc004031a99f4d56)