summaryrefslogtreecommitdiffstats
path: root/source3/client
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix calls to smbc_init in testsmbc.c and tree.cRichard Sharpe2001-02-122-5/+104
| | | | (This used to be commit 244edad065a48c110d73617e6c76bdae0ab6885d)
* io_bufsize was set too large and so full length readsAnton Blanchard2001-01-251-1/+1
| | | | | and writes got broken up into one ~64k and one ~1k packet. (This used to be commit b91f9064673a8ff11a3c0ea2ac40c3f39fa2a2d7)
* Fixed bugs relating to Win2K and the need for a codepage so that unicodeRichard Sharpe2001-01-141-17/+25
| | | | | strings can be handled correctly. (This used to be commit 5629b097d4f04ad45c66f270bd58f08d7c717353)
* Many bug fixes to the libsmbclient.c code plusRichard Sharpe2001-01-122-29/+236
| | | | | | | | - an implementation of smbc_readdir - extensions to tree.c to show files in a second window - changes to auth_fn to provide buffers for username, password, etc from caller rather than callee (This used to be commit 7f559c1a7307b91218d5984f48f65e7dc0ab66b9)
* Update the tree.c GTK+ App so it can walk down directories etc ...Richard Sharpe2001-01-071-76/+122
| | | | (This used to be commit 0490a0ed10cf6ded5b9483958eddd930ef32fb66)
* Fix some more bugs in libsmbclient.c and add functionality to tree.cRichard Sharpe2001-01-061-5/+23
| | | | (This used to be commit d6cef8877a7ed80329b3ba67231a94601fcfd060)
* Fix a minor problem with listing servers in a workgroup and add aRichard Sharpe2001-01-061-0/+460
| | | | | gtk+ test application that tests out some of this stuff ... (This used to be commit 606c4aeceac0bd1823ec6376df3ca5016007ab38)
* The latest changes to libsmbclient ...Richard Sharpe2001-01-051-1/+118
| | | | | | | | | It can now do a directory listing for workgroups, servers, and shares, and, with a bit more effort, it will be able to list directories and files. I also does not request a username and password for the IPC$ share, but it should if the first attempt to connect fails. (This used to be commit 38ff91c5059a32c7ad2fd6074697c7c7f68a878c)
* Needed a callback arg on cli_list ...Richard Sharpe2001-01-051-3/+3
| | | | (This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
* I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I hadRichard Sharpe2001-01-041-5/+7
| | | | | | | to modifiy any routine that calls it to pass NULL and so forth. Should have no impact. It compiles OK. (This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
* First pass at the libsmbclient code ...Richard Sharpe2000-12-261-0/+219
| | | | | | | | | | | | | This code handles the basic stuff and compiles and links under Linux, but I do not know about any other operating systems. Now onto directory listing routines, including those that list workgroups, servers, etc. Nothing is built automatically yet, you have to make client/testsmbc to build the library and test program. Also, no make install targets are defined for libsmbclient.so as yet, either. Would be good if people test on operating systems other than Linux. (This used to be commit 51c0436a50e9f9274cee9de043bbefc93aff8011)
* Tar fixes from Craig Barratt craig@arraycomm.com.Jeremy Allison2000-11-222-2/+4
| | | | | Jeremy. (This used to be commit cf05709ec394d6cac14577c033d658bdc4506208)
* fixed typoGerald Carter2000-09-141-1/+1
| | | | | jerry (This used to be commit d2949468dccd79eb281769cd0da74e4b37d936b8)
* added -A <authfile> option to smbclient for the reading of username /Gerald Carter2000-08-291-9/+71
| | | | | | | | | password credentials from a file. --jerry (This used to be commit e2915009031d63f43cc11c36dac2dfe6c780b5f0)
* 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. (This used to be commit b28cc4163bc2faaa80c5782fc02c8f03c410cdeb)
* and yet another memory leak - this one in the clientAndrew Tridgell2000-05-021-0/+5
| | | | (This used to be commit a85ae6e0ae39530a96e8b86ab868cfd7ea5bc967)
* 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. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
* - 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 (This used to be commit 03e9cea004bbba72161a5323cf3b4556c94aed8e)
* Fix for names with spaces and some I18N filename issues fromJeremy Allison2000-03-101-10/+11
| | | | | | V. Fyodorov <V.Fyodorov@VAZ.RU>. Jeremy. (This used to be commit 4673aa1a4b133338715059174813b8e29d093972)
* 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. (This used to be commit 9f6ad046761adecafba59040baa3abc9f0959e65)
* Fixed code page conversions of messages outgoing/incoming.Jeremy Allison2000-01-271-0/+7
| | | | | Jeremy. (This used to be commit 84b045cbc8b337f1e23f200af433ac9d265a22d4)
* 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. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
* 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 used to be commit e21aa4cb088f348139309d29c85c48c8b777cff5)
* 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. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)
* Fixed spurious error message when doing a 'put' of an empty file.Jeremy Allison2000-01-061-1/+4
| | | | | Jeremy (This used to be commit 9ba8ad1d3d4559fdf6695a18c99e83a1d37c9ac4)
* 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. (This used to be commit 9e90122afd1b6a7cf38660fc3bc3aa8e526bf08b)
* changed %g to %3.1f to be friendly to our poor snprintf() codeAndrew Tridgell1999-12-211-2/+2
| | | | (This used to be commit 6d506ee641a3e3dc9e1d3b3bbb78fe11b9326c70)
* client/smbspool.c from 2.0.6Andrew Tridgell1999-12-171-0/+366
| | | | (This used to be commit 599a7e7f9e73fb7c0da960b46f16990991e9424e)
* 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 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-135-1203/+1004
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-012-2/+2
| | | | (This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
* 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... (This used to be commit 29c480085e786905bfd92ea3cd93658f94e96e47)
* 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]) (This used to be commit bc5d021916a2f070c62011870a80b3b2707aff3b)
* 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. (This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49)
* 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. (This used to be commit b0539d43407cb2b0bab7977908de09b21b145218)
* declare ttarf as double, as in client.cAlexandre Oliva1999-03-301-1/+1
| | | | (This used to be commit dfcfeb743a7667c9dedf3d2b04587c497af12893)
* use double instead of SMB_BIG_UINT for dir_total and ttarfAlexandre Oliva1999-03-302-4/+4
| | | | | (by tridge, merged from branch) (This used to be commit b482ac8fc4948ead79be8dd08c8386449f12e5f6)
* SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)Luke Leighton1999-03-251-1/+1
| | | | (This used to be commit 1cece2124601fad6f5f9e3e16c4b0848ec9be249)
* * 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> (This used to be commit 29581f8486e221f41669c2ca268c282f36a496ce)
* 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. (This used to be commit 329ceaee49fa0175f78873433bd942865309f633)
* 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- (This used to be commit ad8389804cec6c6bf04601a1d7bb3fb7aa8c2274)
* Fixed a glibc glitch in smbumount.c and reenabled some debuggingMichael Warfield1999-02-132-2/+2
| | | | | in smbmount.c (This used to be commit 4b4a706213032ad49a0653e80721bac5f6284f90)
* %s not $sLuke Leighton1999-02-031-1/+1
| | | | (This used to be commit 62118e15fed8c9a7e13705842d0ae59669a2dd8f)
* Minor change to bring smbmount in the main branch in line with some bzeroMichael Warfield1999-02-011-3/+3
| | | | | to memset changes... (This used to be commit 1cb8fcb33bb9e930d8f3cba4cc1ba5aa880c5f8e)
* 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... (This used to be commit c5608093e48ed7fd3b7a1e2a4b1af7e4e59fc2f9)
* set_port warning / unused / global/local variable overlap issuesLuke Leighton1999-01-271-9/+9
| | | | | cmd_svcctl.c tests got put into cvs by mistake. (This used to be commit 0ed70972d72533558f0fdd43e6ec95ac2102b9d0)
* 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 :-( (This used to be commit f6c78192664d611d4663ed7459a2789315861eec)
* 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 :-) (This used to be commit 57301a3eb4723d0790822d3409da788fec4d8378)
* Fixed problems in debug code because I did not compileRichard Sharpe1998-12-191-4/+4
| | | | | first :-( (This used to be commit 47e36bed8fc3cec3a63087f30d680f2431bcfe55)
* Added some debugging to clitar ...Richard Sharpe1998-12-191-0/+4
| | | | (This used to be commit b75af70990c3a9eaed9e3537b79e8e66a0ae8286)