summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
Commit message (Collapse)AuthorAgeFilesLines
* NT4 is particularly fussy about getting this right.Andrew Bartlett2003-03-311-1/+0
| | | | Andrew Bartlett
* fix up IPC/LPT:/A: devicetype in tcon_and_XGerald Carter2003-03-281-21/+20
|
* Fix DOS del command with widelinks = False.Jeremy Allison2003-03-261-1/+2
| | | | Jeremy.
* win9x was suffered a case of the blues during a domain logon.Gerald Carter2003-03-251-1/+14
| | | | | For some reason, explicitly setting the service type during the tcon&X fixes this.
* NT4 as well as W2k respond with IPC regardless of what serviceVolker Lendecke2003-03-201-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
* Fix const warnings.Andrew Bartlett2003-03-171-5/+5
| | | | Andrew Bartlett
* Make sure we mark the assumption of a fstring parameter for 'devicetype'Andrew Bartlett2003-03-161-2/+2
| | | | | | in the function prototype, and change callers to respect this. Andrew Bartlett
* Found by my new checking code (yet to be commited):Andrew Bartlett2003-03-151-1/+1
| | | | | | Allow a service longer than 4 characters in CORE tcon. Andrew Bartlett
* Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett2003-03-081-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
* Fix to allow blocking lock notification to be done rapidly (no waitJeremy Allison2003-02-271-3/+4
| | | | | | for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb (does not interfere with existing locks). Jeremy.
* Make the 'service' in make_connection() use an fstrcpy(), and an fstring,Andrew Bartlett2003-01-121-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
* Ensure we return disk full by default on short writes.Jeremy Allison2003-01-081-6/+6
| | | | Jeremy.
* BIG patch...Andrew Bartlett2003-01-021-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
* fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>Simo Sorce2002-12-311-1/+1
|
* Fix for old DOS client when veto files is set to /.*/Jeremy Allison2002-12-131-1/+1
| | | | Jeremy.
* The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison2002-12-051-2/+1
| | | | | | jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy.
* Added Volker's directory fix - save the attributesJeremy Allison2002-12-041-0/+3
| | | | | from the first call. Jeremy.
* Reformat of reply.c before Volker's patch.Jeremy Allison2002-12-031-1059/+1029
| | | | Jeremy.
* Fixed nasty bug where file writes with start offsets in the rangeJeremy Allison2002-12-031-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.....
* As per Jeremy's request back this out, so as to re-gain the implicit lengthAndrew Bartlett2002-12-011-7/+5
| | | | | | check. Andrew Bartlett
* No need for fstring manipulation here (Tcon&X), just use string pointers.Andrew Bartlett2002-12-011-5/+7
| | | | Andrew Bartlett
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-2/+1
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Ensure can_delete returns correct error code.Jeremy Allison2002-11-051-1/+4
| | | | Jeremy.
* Use sendfile in readbraw.Jeremy Allison2002-09-191-11/+56
| | | | Jeremy.
* Added "use sendfile" per share option.Jeremy Allison2002-09-181-1/+1
| | | | Jeremy.
* Actually use sendfile if selected.Jeremy Allison2002-09-171-1/+1
| | | | Jeremy.
* Attempt to make broken Linux sendfile work.... Still in progress.Jeremy Allison2002-09-171-1/+1
| | | | Jeremy.
* Added fix for broken Linux (no sendfile64). When offset + count > 2GBJeremy Allison2002-09-141-0/+7
| | | | | then return ENOSYS and let the upper layer handle it. Jeremy
* First cut at portable sendfile code. Only used in readX at the momentJeremy Allison2002-09-121-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.
* Formatting tidyups before I look at implementing the sendfile in READX.Jeremy Allison2002-09-111-194/+185
| | | | Jeremy.
* Ensure we've failed a lock with a lock denied message before automaticallyJeremy Allison2002-09-111-3/+3
| | | | | pushing it onto the blocking queue. Jeremy.
* Fix missing braces around push lock call.Jeremy Allison2002-09-111-2/+3
| | | | Jeremy.
* Added final Steve French patch for "required" attributes with oldJeremy Allison2002-09-101-2/+6
| | | | | dir listings. Added regression test in smbtorture (in HEAD) also. Jeremy.
* We shouldn't add printing flag here.Jeremy Allison2002-09-051-1/+1
| | | | Jeremy.
* Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison2002-09-041-1/+1
| | | | | | sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy.
* round lock timeouts in lockingX upwards to multiples of 1 second, so aAndrew Tridgell2002-08-181-1/+1
| | | | half second timout rounds to 1 not 0
* Add RESOLVE_DFSPATH to mkdir operations in HEAD.Shirish Kalele2002-08-121-0/+2
|
* Make 'remote_machine' private to lib/substitute.c, and fix all the user to useAndrew Bartlett2002-08-111-2/+1
| | | | | | the new accessor functions. Andrew Bartlett
* Fix the %m security bug again - and try to make it harder to reintroduce inAndrew Bartlett2002-08-101-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
* Make it clear that the 'service' isn't to be touched. (Make it const).Andrew Bartlett2002-07-201-1/+1
| | | | Andrew Bartlett
* Update the smbd reply code a little:Andrew Bartlett2002-07-201-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
* Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison2002-07-171-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.
* make sure we don't walk past the end of the current SMB buffer whenAndrew Tridgell2002-04-161-21/+21
| | | | | pulling a string this might explain a serious filename corruption bug that Quantum QA spotted
* this fixes the displaying of free disk space for DOS6 clients. Win2000Andrew Tridgell2002-04-151-14/+37
| | | | | changes its behaviour based on the negotiated protocol for the SMBdskattr SMB
* This split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-33/+10
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.
* Added Shirish's client side caching policy change.Jeremy Allison2002-04-101-1/+2
| | | | Jeremy.
* Reintroduce the 2.2 name mangling code, until we get are more flexible solution.Andrew Bartlett2002-04-081-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
* Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.Jeremy Allison2002-04-021-43/+13
| | | | | Forward ported some of the code tidyups from 2.2. Jeremy.
* Removed unused variable.Jeremy Allison2002-03-261-3/+0
| | | | Jeremy.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-20/+61
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.