summaryrefslogtreecommitdiffstats
path: root/source3/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
...
* r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid ofTim Potter2007-10-101-1/+1
| | | | | | '..' from all #include preprocessor commands. This fixes bugzilla #1880 where OpenVMS gets confused about the '.' characters. (This used to be commit 7f161702fa4916979602cc0295919b541912acd6)
* r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASICJeremy Allison2007-10-101-0/+153
| | | | | | | | | info level. Outputs data on the file in the same format the the stat command in Linux. Should be useful to people wanting to learn how to parse the UNIX extension output. Yes I will add the docs later :-). Jeremy. (This used to be commit b25cc596417d29815814c3968ac2627bf59ffc0b)
* r1908: Bugzilla #1541. Fix recursive ls in smbclient. Fix by Josef Zlomek.Tim Potter2007-10-101-1/+1
| | | | (This used to be commit e59af43f6b8f824447bd20efc08dd81f2774e99c)
* r1320: Return an error when the last command read from stdin fails in ↵Jelmer Vernooij2007-10-101-2/+4
| | | | | | | smbclient + prepare for better error checking in tar.. (This used to be commit 374f00b56b7e9bff08e70ee2d93538b2c7fde7b7)
* r1154: Change default setting for case sensitivity to "auto". If set to autoJeremy Allison2007-10-101-0/+16
| | | | | | | | | | | | | then is the client supports it (current clients supported are Samba and CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare "NT LM 0.12" string) then the setting of the per packet flag smb_flag FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows the linux CIFS client to use Samba in a case sensitive manner. Additional command in smbclient "case_sensitive", toggles the flag in subsequent packets. Docs to follow. Jeremy. (This used to be commit cf84c0fe1a061acc0313f7db124b8f947cdf623d)
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy. (This used to be commit 894cc6d16296b934c112786eec896846156aee5d)
* r710: Fix smbclient symlink command when widelinks = no.Jeremy Allison2007-10-101-2/+1
| | | | | Jeremy. (This used to be commit ed699a73f899b3212185ecf52d1c4cd59cc8a7ea)
* r96: Stupid f&%'n UNIX extensions.... SETPATHINFOJeremy Allison2007-10-101-18/+18
| | | | | | | | | | | | | | | normally takes as it's param entry the filename to be acted upon.... Unless it's UNIX extensions create hardlink, or UNIX extensions create symlink. Then it's param -> newfile name data -> oldfile name. This caused me to stuff them up in 3.0.2 (and the client commands link and symlink). Fixed them, everything is now called oldname and newname - thus specifying which name should already exist (hint - the old one...) and which will be created (newname). Jeremy. (This used to be commit 21cc6ab7e8a41160a3e2970623ade7445b5214d6)
* source code fix for bug 1095 -- honor the '-l' optionGerald Carter2004-03-261-2/+6
| | | | (This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
* Fix problems with very long filenames in both smbd and smbclient.Alexander Bokovoy2004-03-121-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)
* BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use ↵Gerald Carter2004-03-111-29/+19
| | | | | | strchr_m() for query_host (smbclient -L) (This used to be commit bc6992c4bffed043dd8ad58d721202091cd14cd3)
* Added client "hardlink" commant to test doing NT rename with hard links.Jeremy Allison2004-03-031-12/+6
| | | | | | Added hardlink_internals() code - UNIX extensions now use this too. Jeremy. (This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
* Use a common function to parse all pathnames from the wire. This allowsJeremy Allison2004-03-031-3/+43
| | | | | | much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
* BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct ↵Gerald Carter2004-03-011-4/+4
| | | | | | truncation of share names and workgroup names (This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)
* Commit Andrew Bartlett's interesting patch to smbclient that allows forRichard Sharpe2004-02-121-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)
* BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in ↵Gerald Carter2004-02-111-9/+9
| | | | | | cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions (This used to be commit 60eb69ff64cc9836072f8f3894e8bc685dc7466a)
* Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) toVolker Lendecke2004-01-161-14/+34
| | | | | | | smbclient -L to make the output usable in pipes. Volker (This used to be commit 4c904210705f2be16daad21c07a4fb5117a3360b)
* * BUG 446Gerald Carter2004-01-151-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)
* Fix crash bug in smbclient completion. Closes bug #659.Tim Potter2003-11-041-3/+2
| | | | (This used to be commit 4480058d85ebe9175c4720c18100b459877dbd07)
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-1/+1
| | | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
* fix bug #39; save the -W value and restore it after lp_load()Gerald Carter2003-08-251-1/+18
| | | | (This used to be commit 79efe7d72ba503b58c8ad3b9b1c711f5ebb33521)
* metze's autogenerate patch for version.hGerald Carter2003-08-201-1/+1
| | | | (This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
* get rid of more compiler warningsHerb Lewis2003-08-151-2/+2
| | | | (This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
* get rid of const as these things really are not constHerb Lewis2003-08-151-2/+2
| | | | (This used to be commit 61bea183a229cc11f25c4a7cb5341faad9833d7b)
* Don't ask twice for the passwordVolker Lendecke2003-08-141-0/+1
| | | | (This used to be commit 8ebd92da01a72b26df769125f51934796e9e3d4f)
* We get the server and workgroup list only over port 139. Fall back to thatVolker Lendecke2003-08-101-0/+16
| | | | | | | | | and if NetBIOS over TCP/IP is disabled, give an error message. Fixes Bug #284 Volker (This used to be commit a2902a6cf8d05569d1c690436f69b4a4cedac400)
* Ensure smbclient obeys -s smb.conf option.Jeremy Allison2003-08-061-6/+16
| | | | | Jeremy. (This used to be commit 7950f7d6b2c5e8247bce1e96ddd1a9ec1045f7f9)
* Anal formatting tidyup :-).Jeremy Allison2003-08-061-181/+198
| | | | | Jeremy. (This used to be commit 9c0197471366ad1acf922e02bb694769863054a6)
* Fix the option processing for smbtar. Does no one check this !Jeremy Allison2003-08-011-4/+20
| | | | | Jeremy. (This used to be commit c4af1ec73584656fb9d2b372461da4748e1643f1)
* Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison2003-07-301-0/+2
| | | | | | connections. Overrides smb.conf parameter if set. Jeremy. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
* convert snprintf() calls using pstrings & fstringsGerald Carter2003-07-231-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)
* fixed the pstrcpy() bug in directory recursion properlyAndrew Tridgell2003-07-181-1/+2
| | | | (This used to be commit 132d6fdf635eb2bf2a1afd6e850d0f6967260f84)
* Fix for bug 222 from Marcin Owsiany.Tim Potter2003-07-171-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)
* Don't use pstrcpy on non-pstrings.Tim Potter2003-07-171-1/+1
| | | | (This used to be commit 3498624d941fe200b06f114ece3373d4c4cfb2d1)
* Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2003-07-031-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)
* Suggest the user runs kinit if smbclient -k returns ↵Tim Potter2003-07-021-0/+4
| | | | | | NT_STATUS_MORE_PROCESSING_REQUIRED. (This used to be commit 66c4beb28672ef335ff4d6d6a3447e4c2c337f76)
* several places in client.c rely in commands[i].name == NULL being aAndrew Tridgell2003-06-111-2/+2
| | | | | | termination condition for checking for commands. Make sure the last element is indeed NULL. (This used to be commit 294f79884df1ebc4a8d955601e7547bdcadef5d6)
* i'm getting rather sick of thisAndrew Tridgell2003-06-111-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)
* Don't segfault when -b is specified (fixes debian bug #196833)Jelmer Vernooij2003-06-101-1/+1
| | | | (This used to be commit 4af9074397bbb208e585f85aaa8a6e402057ebdd)
* Don't crash when doing namecompletion in smbclient. Fixes debian bug #194776Jelmer Vernooij2003-05-291-1/+1
| | | | (This used to be commit f130b4f2a143ef7507d7267ec12a11c1d91f0457)
* Fix non-constant initialiser for Sun CC.Andrew Bartlett2003-05-131-1/+7
| | | | (This used to be commit c2948b9248016388f9b7c5595b0e1aba7e1ace8d)
* And finally IDMAP in 3_0Simo Sorce2003-05-121-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)
* Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij2003-05-101-2/+0
| | | | (This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
* Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij2003-05-101-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)
* Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.Jeremy Allison2003-05-101-1/+2
| | | | | Jeremy. (This used to be commit 151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87)
* Replace workgroup global variable with lp_workgroup()Tim Potter2003-04-281-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)
* Merge:Tim Potter2003-04-141-360/+79
| | | | | - Jelmer's popt changes (This used to be commit b5b6f11940c91dc5ecb5f4a4320e7b9aa72bcd99)
* Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett2003-03-181-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)
* Fix segfault on FD_SET() when we have an fd of -1Andrew Bartlett2003-03-181-0/+3
| | | | | Andrew Bartlett (This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)
* Add const.Andrew Bartlett2003-03-181-1/+1
| | | | (This used to be commit ed245023016779700571d108e7b9339236bcbe7c)