summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
AgeCommit message (Collapse)AuthorFilesLines
2004-01-31* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;Gerald Carter1-11/+4
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping handle it. (This used to be commit 758bbfb5f133c3c85e3092ad88294ae4abbbbc6f)
2003-10-29Fixes to check for wraps which could cause coredumps.Jeremy Allison1-4/+6
Jeremy. (This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
2003-10-16Fix buggy data_len calculation in echo. Add paranoia debug message.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 8fb05cfa3afd9777c161271c4c3cec0d6d5150f2)
2003-10-10Make us pass Samba4 lock tester (with one different error message).Jeremy Allison1-0/+3
Jeremy. (This used to be commit 1c19739aeada047eeb6bc7dbec161b5d783a3576)
2003-10-09Match W2K insanty w.r.t. writelock and writeclose. Samba4 torture tester.Jeremy Allison1-9/+20
Jeremy. (This used to be commit 1c1c4ee8be9473d9d0ea676f7da2a1d359aaa7ee)
2003-10-09At least give a message if we're returning a short read for W2K compatibility.Jeremy Allison1-2/+12
Jeremy. (This used to be commit 9216948062123da1c064b9167743a0a9f12d8c98)
2003-10-09Changes to allow Samba3 to pass the Samba4 RAW-READ tests.Jeremy Allison1-8/+39
Jeremy. (This used to be commit e4df46732021be4eeb5693ebe7ec0df77f4bb5df)
2003-10-08Fixup error code returns from Samba4 tester. Ensure invalid paths areJeremy Allison1-32/+128
validated the same way. Jeremy. (This used to be commit 960e2b4a5f09d3ef80a926894ee7a28549b8de45)
2003-09-29Take care of condition where DOS and NT error codes must differ. Found byJeremy Allison1-1/+1
DOS program test by Amir Hardon <hardon@actcom.co.il>. Jeremy. (This used to be commit 294f376aa908a9c56b73b9bfe48d56012a8f557b)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter1-63/+244
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-08-02port latest changes from SAMBA_3_0 treeSimo Sorce1-21/+37
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter1-41/+45
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-04-12strncat get sometimes optimized to strcat by glibc and that triggers ourSimo Sorce1-4/+3
"don't use strcat" define reworked to snprintf (This used to be commit c37467651becedf3e6b142b53d6675e973970249)
2003-04-11* We must return 0x2 as the majorversion for nt4 to upload driversGerald Carter1-10/+15
* fix bug found by clobber_region() (This used to be commit ad2765bb5e0c1c4d8f12583e49df5b1bc7ffc389)
2003-04-11cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.Gerald Carter1-1/+1
(This used to be commit beedde03fcdd37b567661d96d97efaac640601bd)
2003-03-31NT4 is particularly fussy about getting this right.Andrew Bartlett1-1/+0
Andrew Bartlett (This used to be commit 055a499afb0cab87529f3f991765af95f11cc364)
2003-03-28fix up IPC/LPT:/A: devicetype in tcon_and_XGerald Carter1-21/+20
(This used to be commit a9ccae314fdb4b96115d31083f1a4b26209d597c)
2003-03-26Fix DOS del command with widelinks = False.Jeremy Allison1-1/+2
Jeremy. (This used to be commit ae754e9355c78c22ff5ca5a7f3276e61b4a8fcb7)
2003-03-25win9x was suffered a case of the blues during a domain logon.Gerald Carter1-1/+14
For some reason, explicitly setting the service type during the tcon&X fixes this. (This used to be commit c458179d21465165705e6c035776698cb824baf5)
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)