summaryrefslogtreecommitdiff
path: root/source3/client
AgeCommit message (Collapse)AuthorFilesLines
2000-03-10Fix for names with spaces and some I18N filename issues fromJeremy Allison1-10/+11
V. Fyodorov <V.Fyodorov@VAZ.RU>. Jeremy. (This used to be commit 4673aa1a4b133338715059174813b8e29d093972)
2000-02-25client/client.c:Jeremy Allison1-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)
2000-01-27Fixed code page conversions of messages outgoing/incoming.Jeremy Allison1-0/+7
Jeremy. (This used to be commit 84b045cbc8b337f1e23f200af433ac9d265a22d4)
2000-01-26Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison1-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)
2000-01-08cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell3-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)
2000-01-07this looks like a big commit, but it isn't really :)Andrew Tridgell3-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)
2000-01-06Fixed spurious error message when doing a 'put' of an empty file.Jeremy Allison1-1/+4
Jeremy (This used to be commit 9ba8ad1d3d4559fdf6695a18c99e83a1d37c9ac4)
2000-01-05client/client.c: I18N fixes.Jeremy Allison1-33/+23
smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy. (This used to be commit 9e90122afd1b6a7cf38660fc3bc3aa8e526bf08b)
1999-12-21changed %g to %3.1f to be friendly to our poor snprintf() codeAndrew Tridgell1-2/+2
(This used to be commit 6d506ee641a3e3dc9e1d3b3bbb78fe11b9326c70)
1999-12-17client/smbspool.c from 2.0.6Andrew Tridgell1-0/+366
(This used to be commit 599a7e7f9e73fb7c0da960b46f16990991e9424e)
1999-12-132nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1-975/+0
that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell5-1203/+1004
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-12-01sys_select added one more argument (read, write selectors).Luke Leighton2-2/+2
(This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
1999-11-26whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1-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)
1999-10-30general, drastic improvements to rpcclient.Luke Leighton1-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)
1999-07-09Put back in GNU readline support for smbclient accidentally trashed byTim Potter1-1/+210
tridge in the clientgen.c to clientutil.c conversion. (This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49)
1999-06-29smbclient modified to use cli_establish_connection(). smbclient thereforeLuke Leighton1-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)
1999-03-30declare ttarf as double, as in client.cAlexandre Oliva1-1/+1
(This used to be commit dfcfeb743a7667c9dedf3d2b04587c497af12893)
1999-03-30use double instead of SMB_BIG_UINT for dir_total and ttarfAlexandre Oliva2-4/+4
(by tridge, merged from branch) (This used to be commit b482ac8fc4948ead79be8dd08c8386449f12e5f6)
1999-03-25SMB_BIG_INT dir_total incompatible with %d: must use %llu (line 446)Luke Leighton1-1/+1
(This used to be commit 1cece2124601fad6f5f9e3e16c4b0848ec9be249)
1999-03-25* client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva2-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)
1999-02-18Got to the bottom of another weird one...Michael Warfield1-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)
1999-02-14Added caching of user password if it was entered via getpass. We were alreadyMichael Warfield1-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)
1999-02-13 Fixed a glibc glitch in smbumount.c and reenabled some debuggingMichael Warfield2-2/+2
in smbmount.c (This used to be commit 4b4a706213032ad49a0653e80721bac5f6284f90)
1999-02-03%s not $sLuke Leighton1-1/+1
(This used to be commit 62118e15fed8c9a7e13705842d0ae59669a2dd8f)
1999-02-01Minor change to bring smbmount in the main branch in line with some bzeroMichael Warfield1-3/+3
to memset changes... (This used to be commit 1cb8fcb33bb9e930d8f3cba4cc1ba5aa880c5f8e)
1999-01-31Ok... Yet another round of fixes for smbmount and autofs.Michael Warfield2-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)
1999-01-27set_port warning / unused / global/local variable overlap issuesLuke Leighton1-9/+9
cmd_svcctl.c tests got put into cvs by mistake. (This used to be commit 0ed70972d72533558f0fdd43e6ec95ac2102b9d0)
1999-01-25Putting back the -p flag in smbclient.Richard Sharpe1-2/+6
However, it seems that the -s flag in smbclient is also ignored :-( (This used to be commit f6c78192664d611d4663ed7459a2789315861eec)
1999-01-17A small change to clitar.c (really, I promise :-)Richard Sharpe1-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)
1998-12-19Fixed problems in debug code because I did not compileRichard Sharpe1-4/+4
first :-( (This used to be commit 47e36bed8fc3cec3a63087f30d680f2431bcfe55)
1998-12-19Added some debugging to clitar ...Richard Sharpe1-0/+4
(This used to be commit b75af70990c3a9eaed9e3537b79e8e66a0ae8286)
1998-12-17Fixed tar recurse bug.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 7be5c8e8f734a2bd8f4e3c38b7f94c501ad35a19)
1998-11-30 Earlier fix for smbmount timing window was the wrong patch.Michael Warfield1-9/+10
My bad... Earlier one was the patch from the CIFS conference that didn't work, this fixes... (This used to be commit 12739f0456e9f707a361bce2fa01b0baaae182d9)
1998-11-25Makefile.in: Added maintainer mode fixes.Jeremy Allison1-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. (This used to be commit 6acb4b68f68d516e2ac3c47e500f5600d653435e)
1998-11-17Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison2-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. (This used to be commit 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac)
1998-11-17Fixed missing NULL check in tar op.Jeremy Allison1-2/+4
Jeremy. (This used to be commit 6db04cd4622289dbdbd0c6d4d084baa8f84c40c2)
1998-11-14automatically uppercase server and share names (win95 won't handleAndrew Tridgell1-6/+0
lowercase share names!) (This used to be commit dddf1d8522707b828cac466c4a9ab2807d098573)
1998-11-14fixed setmode in smbclientAndrew Tridgell1-7/+6
(This used to be commit c58f4965100692d8edcd613a341df9e2ad88cfa0)
1998-11-14- handle servers that don't support getattrE (ie. NT)Andrew Tridgell2-4/+6
- use * in clitar instead of *.* (This used to be commit 2d9335fe2a6fc3bb6687360c99d8fc69cb2d555a)
1998-11-14Fixed problem with smbclient issuing '*.*' to NT server when anJeremy Allison1-5/+5
NT server needs '*'. Win95/98 doesn't care either way :-). Jeremy. (This used to be commit a0adae90cadd7702f8263c97d4495fa093e713e6)
1998-11-14prompt for password on smbclient -LAndrew Tridgell1-1/+0
(This used to be commit 1558f34a878d6fea0cc745a7fcec04f79f7e50ff)
1998-11-13Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1-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. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
1998-11-13Fixed timing window created by daemonize function. Smbmount was going daemonMichael Warfield1-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. (This used to be commit 2f456be660b4bbf22c618b506062f812f35e368a)
1998-11-13fixes for OSF1 compilationAndrew Tridgell1-1/+1
(This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e)
1998-11-12please remember to check that code compiles before checkin!Andrew Tridgell1-2/+2
(This used to be commit 88c90ec65c1a764dd7b13d9fb5ce700027f40cfd)
1998-11-12.cvsignore: Removed old entries.Herb Lewis1-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. (This used to be commit 3c45a3503ea57d17e98eb3e57514161a5c82e45e)
1998-11-09Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison2-29/+14
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. (This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
1998-11-09converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell2-4591/+1549
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? (This used to be commit e14ca7765ace1b721dad8eca4a527a4e4a8f1ab8)
1998-11-02client/client.c: Patch to tidy up file size output.Jeremy Allison1-1/+1
nmbd/nmbd.c: Someone (a "yank" no doubt :-) Changed instances of "initialise" to "initialize". Someone get that man an *English* dictionary.... :-) :-). Jeremy. (This used to be commit 6279be7f96802bb132e5e18dd8c6912652296e70)