summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed typoGerald Carter2000-09-141-1/+1
| | | | jerry
* added -A <authfile> option to smbclient for the reading of username /Gerald Carter2000-08-291-9/+71
| | | | | | | | password credentials from a file. --jerry
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-111-2/+2
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* and yet another memory leak - this one in the clientAndrew Tridgell2000-05-021-0/+5
|
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-4/+4
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-301-1/+1
| | | | | | | | | | | | | | | | 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
* Fix for names with spaces and some I18N filename issues fromJeremy Allison2000-03-101-10/+11
| | | | | V. Fyodorov <V.Fyodorov@VAZ.RU>. Jeremy.
* client/client.c:Jeremy Allison2000-02-251-1/+6
| | | | | | | 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.
* Fixed code page conversions of messages outgoing/incoming.Jeremy Allison2000-01-271-0/+7
| | | | Jeremy.
* cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell2000-01-081-1/+1
| | | | | | 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
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-071-7/+10
| | | | | | | | 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.
* Fixed spurious error message when doing a 'put' of an empty file.Jeremy Allison2000-01-061-1/+4
| | | | Jeremy
* client/client.c: I18N fixes.Jeremy Allison2000-01-051-33/+23
| | | | | | smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy.
* changed %g to %3.1f to be friendly to our poor snprintf() codeAndrew Tridgell1999-12-211-2/+2
|
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-297/+394
|
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-011-1/+1
|
* whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1999-11-261-5/+5
| | | | | | found out that getopt() _must_ have optind set to 0 before reuse. still haven't decided what to do with the net* api yet...
* general, drastic improvements to rpcclient.Luke Leighton1999-10-301-5/+5
| | | | | | | | | | | added samgroup <groupname> command added samgroupmem <groupname> command added proper registry key completion added sam command user-completion (e.g samuser [tab]) added sam command group-completion (e.g samgroup [tab])
* Put back in GNU readline support for smbclient accidentally trashed byTim Potter1999-07-091-1/+210
| | | | tridge in the clientgen.c to clientutil.c conversion.
* smbclient modified to use cli_establish_connection(). smbclient thereforeLuke Leighton1999-06-291-58/+39
| | | | | | now uses improved authentication. smbclient now "broken" for "scripts" based on DEBUG() output. cli_establish_connection() requires modification to support old scripts.
* use double instead of SMB_BIG_UINT for dir_total and ttarfAlexandre Oliva1999-03-301-3/+3
| | | | (by tridge, merged from branch)
* SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)Luke Leighton1999-03-251-1/+1
|
* * client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva1999-03-251-2/+2
| | | | | | * client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org>
* set_port warning / unused / global/local variable overlap issuesLuke Leighton1999-01-271-9/+9
| | | | cmd_svcctl.c tests got put into cvs by mistake.
* Putting back the -p flag in smbclient.Richard Sharpe1999-01-251-2/+6
| | | | | However, it seems that the -s flag in smbclient is also ignored :-(
* Makefile.in: Added maintainer mode fixes.Jeremy Allison1998-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | aclocal.m4: Added AC_LIBTESTFUNC. configure.in: Fixed -lsecurity -lsec problems. client.c: dos_ fixes. groupdb/aliasunix.c: Dead code removal. include/includes.h: Added default PRINTCAP_NAME. lib/genrand.c: dos_ fixes. lib/replace.c: Added strtoul. lib/system.c: dos_ fixes. lib/util.c: dos_ fixes. lib/util_sid.c: Signed/unsigned fixes. lib/util_str.c: removed bad const. locking/locking_slow.c: dos_ fixes. printing/printing.c: dos_ fixes. rpc_server/srv_samr.c: Dead code removal. rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN ! smbd/dir.c: dos_ fixes. smbd/open.c: dos_ fixes. smbd/oplock.c: dos_ fixes. smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes. Jeremy.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-4/+4
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* Fixed missing NULL check in tar op.Jeremy Allison1998-11-171-2/+4
| | | | Jeremy.
* automatically uppercase server and share names (win95 won't handleAndrew Tridgell1998-11-141-6/+0
| | | | lowercase share names!)
* - handle servers that don't support getattrE (ie. NT)Andrew Tridgell1998-11-141-3/+5
| | | | - use * in clitar instead of *.*
* Fixed problem with smbclient issuing '*.*' to NT server when anJeremy Allison1998-11-141-5/+5
| | | | | NT server needs '*'. Win95/98 doesn't care either way :-). Jeremy.
* prompt for password on smbclient -LAndrew Tridgell1998-11-141-1/+0
|
* fixes for OSF1 compilationAndrew Tridgell1998-11-131-1/+1
|
* please remember to check that code compiles before checkin!Andrew Tridgell1998-11-121-2/+2
|
* .cvsignore: Removed old entries.Herb Lewis1998-11-121-1/+13
| | | | | | | | | | | | client/client.c: include/client.h: Added some debug messages that the old client used to generate. These are needed to make scripts such as 'findsmb' work - there may be other changes to keep backwards output compatibility. Do we need a -old-client-compat argument ? libsmb/clientgen.c: Fixed crash bug where malloc'ed data wasn't being cleared - corrupted malloc chains. web/swat.c: John's changes to get rid of "ghost" table entries.
* Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1998-11-091-21/+7
| | | | | | | | | | | | | client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy.
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-3454/+1437
| | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c?
* client/client.c: Patch to tidy up file size output.Jeremy Allison1998-11-021-1/+1
| | | | | | nmbd/nmbd.c: Someone (a "yank" no doubt :-) Changed instances of "initialise" to "initialize". Someone get that man an *English* dictionary.... :-) :-). Jeremy.
* Tidied up option processing in smbclient - usage message now actuallyJeremy Allison1998-10-291-123/+132
| | | | | | | | | reflects the real options. Removed '-S' option - couldn't see what this was doing (seemed to have something to do with nt_domain_logon ?). Luke please check if you needed this code (code is only #ifdef'ed out and can be re-instated). Did this to make writing of yodl smbclient man page possible :-). Jeremy.
* fix for John.Andrew Tridgell1998-10-241-8/+8
| | | | don't seek unless absolutely necessary on files in do_put()
* Unlink zero length files that did NOT exist at the point of origin on a ↵John Terpstra1998-10-241-1/+4
| | | | do_get() call.
* use the username GUEST if no other username is availableAndrew Tridgell1998-10-161-0/+5
|
* fixed a bug in the readline supportAndrew Tridgell1998-10-081-3/+4
|
* somehow "in_client" got included twice in two places.Andrew Tridgell1998-10-071-1/+0
|
* Added capability for smbclient to use the local WINS server on the sameRichard Sharpe1998-10-061-1/+2
| | | | machine if WINSsupport configured
* support using #xx at end of netbios name to connect to the specified name typeAndrew Tridgell1998-10-041-0/+6
|
* Added E Jay Berkenbilt's fixesRichard Sharpe1998-10-041-2/+2
|
* Got very strict about the differences and uses ofJeremy Allison1998-09-291-31/+30
| | | | | | | uid_t, gid_t and vuid. Added sys_getgroups() to get around the int * return problem. Set correct datatypes for all uid, gid and vuid variables. Jeremy.
* Now have a better solution to the need to have smblcient findRichard Sharpe1998-09-291-0/+3
| | | | | | | | | | a WINS server if running on the WINS server. As suggested by Andrew, we have a flag, in_client=False by default, and set it to True in the client. loadparam.c checks this and sets szWINSserver to 127.0.0.1 when in_client && bWINSsupport. BTW, we seem to have picked up and unused value in some of Luke's new code.
* Fixed stupid bug with "cd /" appending a "/" character to the path forever....Jeremy Allison1998-09-291-0/+2
| | | | Jeremy.