summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* Making the -p functionality in smbclient work again!Richard Sharpe1999-01-261-2/+3
| | | | Added a function cli_set_port to clientgen.c
* client/client.c: Fixed comment.Jeremy Allison1998-12-301-1/+1
| | | | | | All others - added checks for the compiler understanding volatile and the system having sig_atomic_t. Changed sighup code to use this. Jeremy.
* Added lib/doscalls.c : This file collects all the calls that use dos_to_unix()Jeremy Allison1998-11-241-3/+3
| | | | | | | | | | | | | | | | | | | to map filenames before accessing the UNIX filesystem. The other changes are to make the code that previously allways called the ambiguous functions (such as file_size(), that internally called dos_to_unix()) to be unambiguous. For example: file_size() becomes "dos_file_size()", that calls dos_to_unix(), and file_size(), that does not. It is now very explicit when we are calling a dos mapping call and when we are not. Also added string_to_sid unsigned fix by adding the strtoul from libg++ code into lib/replace.c and testing for strtoul in configure.in. Jeremy.
* Changed samba.anu.edu.au -> samba.orgJeremy Allison1998-11-231-2/+4
| | | | | Added Andrew's all_string_sub changes. Jeremy.
* Changed (most) open()/fopen()/creat()/mmap() calls to use sys_XXX() instead.Jeremy Allison1998-11-171-4/+4
| | | | | | Needed as in the 64 bit file spec new open types are needed on many OS's to be able to seek past 32bits. 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.
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-281-13/+12
| | | | | | | | | | Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy.
* wait_keyboard must still be defined if readline is not availableAlexandre Oliva1998-09-271-3/+3
|
* Fixed up more possibly uninitialized variables.Richard Sharpe1998-09-271-3/+3
| | | | | | Now only two compilation warnings seem to be left. Luke may want to check the changes I made.
* Fixed up warnings in new client code.Jeremy Allison1998-09-231-43/+43
| | | | | | | Note to coders. If using gcc please use the compiler flags : -Wall -Werror -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual *before* checking anything in to ensure a clean compile. Jeremy.
* implemented du and tar -nAlexandre Oliva1998-09-211-2/+98
|
* Adding rewritten restore code ... Old code is still thereRichard Sharpe1998-09-181-17/+237
| | | | surrounded by a OLD_DOTARPUT.
* Ok so with this bugfix 64 bit file access actually seems to work :-).Jeremy Allison1998-09-111-1/+1
| | | | | | Problems were just dumb bugs like (defining sys_lseek to return 'int' DOH !). Jeremy.
* ahh, the joy of deleting large chunks of code that someone else hasAndrew Tridgell1998-09-051-25/+0
| | | | | | | | painstakingly put in :) This gets rid of most of the #ifdef LARGE_SMB_INO_T ifdefs around DEBUG() statements. We just use %.0f in all cases. Makes the code a bit easier to read :)
* tridge the destroyer returns!Andrew Tridgell1998-09-051-6/+14
| | | | | | | | | | | | | | | | | | | | | | prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static?
* Ok - this is the 64 bit widening check in. It changes the configureJeremy Allison1998-09-031-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | to check for stat64 and friends, and then changes much of Samba to use the data type SMB_OFF_T for file size information. stat/fstat/lstat/lseek/ftruncate have now become sys_stat etc. to hide the 64 bit calls if needed. Note that this still does not expose 64 bit functionality to the client, as the changes to the reply_xxx smb's are not yet done. This code change should make these changes possible. Still to do before full 64 bit-ness to the client: fcntl lock code. statfs code widening of dev_t and ino_t (now possible due to SMB_DEV_T and SMB_OFF_T types being in place). Let me know if wierd things happen after this check-in and I'll fix them :-). Jeremy.
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-011-7/+7
| | | | | | | | | | | | | | | | | | | | | bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
* bounds check next_token() to prevent possible buffer overflowsAndrew Tridgell1998-08-311-24/+25
|
* This checking fixes the statcache bug that stopped NetBench from runningJeremy Allison1998-08-281-1/+1
| | | | | | | | | | | | | | correctly. Added new parameter "stat cache size" - set to 50 by default. I now declare the statcache code officially "open" for business :-). It gets a hit rate of 97% with a NetBench run and seems to make using a case insensitive run as efficient as a case sensitive run. Also tidied up our sys_select usage - added a maxfd parameter and also added an implementation of select in terms of poll(), for systems where poll() is much faster. This is disabled by default. Jeremy.
* remove an unused variableAndrew Tridgell1998-08-141-1/+0
|
* I've added a dbgflush() function to debug.c. Calling this will cause theChristopher R. Hertel1998-08-121-1/+1
| | | | | | | | | debug format buffer to be written out (and reset). fflush() is also called to force the issue. I replaced the call to fflush() in client.c with a call to dbgflush(), which seems to have fixed the problem that Andrew was working on (i.e., that the prompt was not displayed when using smbclient). Chris -)-----
* Makefile.in: Added CHECK target back in (at Herb's request). AddedJeremy Allison1998-08-111-11/+28
| | | | | | | | manpath in (although we don't currently use it). client/client.c: Added John Blair's fixes for "put -". include/nterr.h: Added NT_STATUS_NOTIFY_ENUM_DIR error code. smbd/nttrans.c: Added in devious fix for one-shot NT change notify bug. Jeremy.
* As per a Andrew's message, I went through and removed the timestring()Christopher R. Hertel1998-07-311-1/+1
| | | | | | | | | timestamps from several DEBUG messages. The timestamps are redundant now that DEBUG() provides them automatically. There are still a few more files to do, but I've got to get home for dinner. Chris -)-----
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-68/+2
|
* Added SSL support from Christian Starkjohann <cs@obdev.at>Jeremy Allison1998-06-161-0/+4
| | | | | | | This patch may not yet compile with -DUSE_SSL enabled, further Makefile changes may be needed. But it was important to get this code in place before I go off to USENIX. Jeremy.
* client.c: Made -L do a null-session share unless -U user is specified.Jeremy Allison1998-06-151-36/+30
| | | | | | clientutil.c: Fixed NT session to add NT password. groupname.c: Added lookup function. Jeremy.
* client.c: Allowed client to proceed even if it gets error 234 (more dataJeremy Allison1998-06-041-101/+108
| | | | | | | available) when scanning server/workgroup/share lists. ipc.c: Removed redundent definition of ERROR_MORE_DATA (234) we already have ERRmoredata in smb.h Jeremy.
* This is a security audit change of the main source.Jeremy Allison1998-05-121-156/+156
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* don't use system functions as arguments to qsort() as otherwise youAndrew Tridgell1998-05-111-1/+1
| | | | | get stuck on systems with broken headers (like SunOS4). In this case use StrCaseCmp instead of strcasecmp