summaryrefslogtreecommitdiffstats
path: root/source/client
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-022-6/+6
| | | | | 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-302-3/+3
| | | | | | | | | | | | | | | | 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.
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-261-4/+4
| | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy.
* cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell2000-01-083-3/+3
| | | | | | 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-073-14/+17
| | | | | | | | 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
|
* client/smbspool.c from 2.0.6Andrew Tridgell1999-12-171-0/+366
|
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-975/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-135-1203/+1004
|
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-012-2/+2
|
* 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.
* declare ttarf as double, as in client.cAlexandre Oliva1999-03-301-1/+1
|
* use double instead of SMB_BIG_UINT for dir_total and ttarfAlexandre Oliva1999-03-302-4/+4
| | | | (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-252-4/+5
| | | | | | * client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org>
* Got to the bottom of another weird one...Michael Warfield1999-02-181-1/+5
| | | | | | | | | | Piping the output of smbmount back to autofs/automount was causing the automount process to hang. Reason was that automount was depending on the pipe to close to continue on, rather than detecting the child signal. This occured with debug enabled and the daemon process was not closing the stdout process. Disabling debuging avoids the problem. Debugging is turned off in the cvs repository and a warning placed over the debugging option.
* Added caching of user password if it was entered via getpass. We were alreadyMichael Warfield1999-02-141-1/+102
| | | | | | | | | | | | | | | | | | caching the password if it came from the command line or from the environment. This completes the set and deals with the bloody nusance when reconnecting a connection after we have gone daemon... Grrr... Added code to clean up the mount point following a catastrophic failure during reconnect. The smbmount daemon was exiting but leaving the mount point in an unusable state. If smbmount must exit following a reconnect failure, we "unmount" the mount point and clean up mnttab. Currently, the unmount works, fixing some really ugly I/O errors and failure when trying to remount. The cleanup on mnttab still has problems. This is better than what it was and doesn't break anything that wasn't broken before, so I'm committing this in even with the mnttab problem. Will commit the fix to that when I figure out what is busted there... -mhw-
* Fixed a glibc glitch in smbumount.c and reenabled some debuggingMichael Warfield1999-02-132-2/+2
| | | | in smbmount.c
* %s not $sLuke Leighton1999-02-031-1/+1
|
* Minor change to bring smbmount in the main branch in line with some bzeroMichael Warfield1999-02-011-3/+3
| | | | to memset changes...
* Ok... Yet another round of fixes for smbmount and autofs.Michael Warfield1999-01-312-18/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | 1) The earlier fix for the smbmount race conditions broke the PID registration with smbfs. That fix has been backed out and replaced by a signalling convention from the child smbmount process back to the parent telling the parent when it is safe to exit. 2) Fixing all of this uncovered a NASTY deadly embrace between smbmount, smbmnt, and autofs. This was caused by the setsid call in the daemon code. The smbmnt process no longer was registered as "magic" because it was no longer in the autofs process group. Many many kudos and thanks to H Peter Anvin for giving me the clue to solving this agravating puzzle. The setsid was moved down the where the child signals the parent and a warn left in its place in the daemonize code. 3) Fixed (actually worked around with a BUTT UGLY HACK) a problem with SMB_GET_MOUNTPID in smbumount.c. The smb_fs.h header file has the parameter to this ioctl defined as a uid_t. Unfortunately that's a 32 bit quantity under glibc and it's currently a 16 bit quantity in kernel space. Undefined the macro and redefined it with a parameter of __kernel_uid_t. That should keep us out of trouble till I can have someone fix smb_fs.h in the kernel sources...
* 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 :-(
* A small change to clitar.c (really, I promise :-)Richard Sharpe1999-01-171-0/+7
| | | | | | | If we are writing the tar file to stdout, set dbf to stderr so that we do not screw up tar output with log info etc. Compiles clean and tested with 38MB backup. Honest :-)
* Fixed problems in debug code because I did not compileRichard Sharpe1998-12-191-4/+4
| | | | first :-(
* Added some debugging to clitar ...Richard Sharpe1998-12-191-0/+4
|
* Fixed tar recurse bug.Jeremy Allison1998-12-171-1/+1
| | | | Jeremy.
* Earlier fix for smbmount timing window was the wrong patch.Michael Warfield1998-11-301-9/+10
| | | | | My bad... Earlier one was the patch from the CIFS conference that didn't work, this fixes...
* 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-172-7/+7
| | | | | | | | | | 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!)
* fixed setmode in smbclientAndrew Tridgell1998-11-141-7/+6
|
* - handle servers that don't support getattrE (ie. NT)Andrew Tridgell1998-11-142-4/+6
| | | | - 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
|
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-1/+1
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* Fixed timing window created by daemonize function. Smbmount was going daemonMichael Warfield1998-11-131-7/+10
| | | | | | | | before the mount was actually completed. This caused weird problems when used with autofs such as empty directories on first listing or files which would appear in "ls" but would return "no such file or directory" under "ls -l". Note to Volker: Initial attempt from CIFS conference didn't work. Had to move daemonize function inside of loop after ioctl.