summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
AgeCommit message (Collapse)AuthorFilesLines
2003-03-20NT4 as well as W2k respond with IPC regardless of what serviceVolker Lendecke1-1/+1
type the client requested in the TCONX when connecting to IPC$. It is very well possible that this also applies to the DISK and PRINTER share types, not only IPC. Found this while trying to join a HEAD domain from NT4SP6. Volker (This used to be commit d42eb2116df4bb82c4199a688a057cd0a9f435ed)
2003-03-17Fix const warnings.Andrew Bartlett1-5/+5
Andrew Bartlett (This used to be commit fc1408d5d1a8b64dfd20268ab6f4a5f2a007614b)
2003-03-16Make sure we mark the assumption of a fstring parameter for 'devicetype'Andrew Bartlett1-2/+2
in the function prototype, and change callers to respect this. Andrew Bartlett (This used to be commit 9f3d3c380120f16d76d68f346799282d61eec892)
2003-03-15Found by my new checking code (yet to be commited):Andrew Bartlett1-1/+1
Allow a service longer than 4 characters in CORE tcon. Andrew Bartlett (This used to be commit b56613c1cc13ebd5c9ba11a35d2f96c4c3eb0628)
2003-03-08Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett1-2/+2
reason, during a Win2003 installation, when you select 'domain join' it sends one machine name in the name exchange, and litraly 'machinename' during the NTLMSSP login. Also fix up winbindd's logfile handling, so that it matches smbd and nmbd. (This helps me, by seperating the logs by pid). Andrew Bartlett (This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-02-27Fix to allow blocking lock notification to be done rapidly (no waitJeremy Allison1-3/+4
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb (does not interfere with existing locks). Jeremy. (This used to be commit 22fc0d48ff2052b4274c65f85050c58b235bf4e4)
2003-01-12Make the 'service' in make_connection() use an fstrcpy(), and an fstring,Andrew Bartlett1-1/+1
becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really don't want supprises for service names. Also remove a legacy #define, in favor of the lp_ equiv. Andrew Bartlett (This used to be commit 7854a439ac601d3c23703b115cd5a8d4257c7717)
2003-01-08Ensure we return disk full by default on short writes.Jeremy Allison1-6/+6
Jeremy. (This used to be commit 6a2b7fd82c868d517301f8566cd86e9e4b31546f)
2003-01-02BIG patch...Andrew Bartlett1-1/+1
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-31fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>Simo Sorce1-1/+1
(This used to be commit 63a669475b0ea319da12a87ee4635b1d071ff29f)
2002-12-13Fix for old DOS client when veto files is set to /.*/Jeremy Allison1-1/+1
Jeremy. (This used to be commit 636ab292db8816663c507dd8dbf85078392af5f8)
2002-12-05The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison1-2/+1
jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy. (This used to be commit 15f0bad1fc72ff44cd195d34fd530c25a739f42d)
2002-12-04Added Volker's directory fix - save the attributesJeremy Allison1-0/+3
from the first call. Jeremy. (This used to be commit 2fe7504a08b692ec791c853e7a260a06142b7595)
2002-12-03Reformat of reply.c before Volker's patch.Jeremy Allison1-1059/+1029
Jeremy. (This used to be commit d41858b9e6a21f6e01305c33d107d16f2b587d37)
2002-12-03Fixed nasty bug where file writes with start offsets in the rangeJeremy Allison1-13/+14
0x80000000 -> 0xFFFFFFFF would fail as they were being cast from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types). The sign extension would cause the offset to be treated as negative. Thanks to Herb for helping me track this one down (IRIX is good for large file tests :-). Jeremy. PS. That horrid EXEXIST thing has broken configure..... (This used to be commit fc7d3faed798e7496f2991ec7d795c3b1a3758f5)
2002-12-01As per Jeremy's request back this out, so as to re-gain the implicit lengthAndrew Bartlett1-7/+5
check. Andrew Bartlett (This used to be commit 323088259f19f59008160d56fbcb9df6a6cd0d98)
2002-12-01No need for fstring manipulation here (Tcon&X), just use string pointers.Andrew Bartlett1-5/+7
Andrew Bartlett (This used to be commit b072bb9c8469799734507bcdffd4be29211e2610)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-2/+1
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-05Ensure can_delete returns correct error code.Jeremy Allison1-1/+4
Jeremy. (This used to be commit 44db20f9f63d72c2e6e1f4ffedf72d75563369fb)
2002-09-19Use sendfile in readbraw.Jeremy Allison1-11/+56
Jeremy. (This used to be commit a77966645a976d6ae08581c2e92465c48a8e961d)
2002-09-18Added "use sendfile" per share option.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 28466ff42c3328e49d46f7cddfc4bb2fe462d871)
2002-09-17Actually use sendfile if selected.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
2002-09-17Attempt to make broken Linux sendfile work.... Still in progress.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f956a4d29d0d88cd92fac0f0c9f636fc152afe0a)
2002-09-14Added fix for broken Linux (no sendfile64). When offset + count > 2GBJeremy Allison1-0/+7
then return ENOSYS and let the upper layer handle it. Jeremy (This used to be commit 872dfd87cda585c33c3823b06580cb301567a9b9)
2002-09-12First cut at portable sendfile code. Only used in readX at the momentJeremy Allison1-16/+87
and doesn't actually call sendfile. Needs to be vectored through the VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux). Linux doesn't actually work (2.4.19 kernel) at the moment because it doesn't have a 64-bit clean sendfile. Jeremy. (This used to be commit fd772ca7b16cd86e0d50c7ed8d537c202976a6d2)
2002-09-11Formatting tidyups before I look at implementing the sendfile in READX.Jeremy Allison1-194/+185
Jeremy. (This used to be commit 640f061ab2c0fa772c0b181a5492aaf94b21fd3e)
2002-09-11Ensure we've failed a lock with a lock denied message before automaticallyJeremy Allison1-3/+3
pushing it onto the blocking queue. Jeremy. (This used to be commit 237e36124cedf0485deaff81f34688fa862c3317)
2002-09-11Fix missing braces around push lock call.Jeremy Allison1-2/+3
Jeremy. (This used to be commit c93b40f43d5f5027f26c9b6bb906011a9075db2d)
2002-09-10Added final Steve French patch for "required" attributes with oldJeremy Allison1-2/+6
dir listings. Added regression test in smbtorture (in HEAD) also. Jeremy. (This used to be commit 3c9d24d7c3bad2beb641880a97f0eda5cd3e4ec7)
2002-09-05We shouldn't add printing flag here.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f00102ba77d752bdf714fa83ac7fdc679e8d7f17)
2002-09-04Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison1-1/+1
sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-08-18round lock timeouts in lockingX upwards to multiples of 1 second, so aAndrew Tridgell1-1/+1
half second timout rounds to 1 not 0 (This used to be commit 282a64b085162a58560175d14e7ceaef3d6cc9cc)
2002-08-12Add RESOLVE_DFSPATH to mkdir operations in HEAD.Shirish Kalele1-0/+2
(This used to be commit cbb6e2fbdb42964107cf033c787a32cedd46e5d8)
2002-08-11Make 'remote_machine' private to lib/substitute.c, and fix all the user to useAndrew Bartlett1-2/+1
the new accessor functions. Andrew Bartlett (This used to be commit f393de2310e997d05674eb7f1268655373e03647)
2002-08-10Fix the %m security bug again - and try to make it harder to reintroduce inAndrew Bartlett1-14/+8
future. This moves us from fstrcpy() and global variables to 'get' and 'set' functions. In particular, the 'set' function sainity-checks the input, in the same way as we always have. Andrew Bartlett (This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)
2002-07-20Make it clear that the 'service' isn't to be touched. (Make it const).Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 6465c6727be15cd2e915710bdc3e2f4244ad2083)
2002-07-20Update the smbd reply code a little:Andrew Bartlett1-5/+16
I don't like the idea of muliple netprots - becouse I see potential problems with people being able to maniplate internal samba variables. This applies in particular to remote names, so don't allow muliple session requests either. Also remove a pstrcpy() from the tcon code, we really don't need it. Andrew Bartlett (This used to be commit 2afa291404cfd8dae11120e5e470c38ba067c4b2)
2002-07-17Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison1-1/+4
queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy. (This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)
2002-04-16make sure we don't walk past the end of the current SMB buffer whenAndrew Tridgell1-21/+21
pulling a string this might explain a serious filename corruption bug that Quantum QA spotted (This used to be commit a877eae24becad9e0cd5b33ffe0916a20d5ba227)
2002-04-15this fixes the displaying of free disk space for DOS6 clients. Win2000Andrew Tridgell1-14/+37
changes its behaviour based on the negotiated protocol for the SMBdskattr SMB (This used to be commit b693917530d649e22a677bd3bb1adedbfdd89bba)
2002-04-11This split the mangling code up to allow for the possibility of multipleAndrew Tridgell1-33/+10
mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty. (This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-10Added Shirish's client side caching policy change.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
2002-04-08Reintroduce the 2.2 name mangling code, until we get are more flexible solution.Andrew Bartlett1-5/+6
Even for a hash/cache setup, this code needs some more work, in particular it needs to use mangle_get_prefix() etc and to move to unicode internals. Andrew Bartlett (This used to be commit ad8aa470575c39fcbc7f1440bf1081d7ea31c0aa)
2002-04-02Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.Jeremy Allison1-43/+13
Forward ported some of the code tidyups from 2.2. Jeremy. (This used to be commit 2475c09b354cc7b5f4ce384e4497207d30f619bb)
2002-03-26Removed unused variable.Jeremy Allison1-3/+0
Jeremy. (This used to be commit 4eb29ac559faf29b348a4097a33f9cbf4cf9d057)
2002-03-23Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison1-20/+61
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-20Remove the "stat open" code - make it inline. This should fix theJeremy Allison1-76/+80
bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy. (This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)
2002-03-19Sync up vfs changes from 2.2.x.Jeremy Allison1-1/+1
Jeremy. (This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter1-3/+3
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-15syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter1-1/+1
in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)