summaryrefslogtreecommitdiffstats
path: root/source3/smbd/error.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-smbd: Avoid starting log lines with the word 'error'Andrew Bartlett2012-02-161-2/+10
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-021-3/+3
|
* s3-smbd ntstatus_to_dos() pulls the DOS error codes out internallyAndrew Bartlett2011-05-061-5/+4
| | | | | | This means we don't need to duplicate that logic here. Andrew Bartlett
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-3/+0
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Rename reply_doserror() -> reply_force_doserror().Jeremy Allison2009-12-211-14/+6
| | | | | | | Rewrite all calls to reply_nterror(NT_STATUS_DOS()) to reply_force_doserror() and update the comment in smbd/error.c Jeremy.
* Actually explain the twisty paths of tortured logic behindJeremy Allison2009-12-181-14/+42
| | | | | | | | | reply_doserror(), reply_nterror(), and reply_nterror(NT_STATUS_DOS()). Fix the call in rely_openerror() to actually force a DOS error for "too many open files". Jeremy.
* Always map EMFILE to ERRDOS, ERRnofids, *NOT* NT_STATUS_TOO_MANY_OPENED_FILES.Jeremy Allison2009-12-171-0/+4
| | | | | | This is what W2KR3 does for NTCreateX and openX calls. May be the correct fix for bug 6837 - "Too many open files" when trying to access large number of files. Jeremy.
* Remove reply_unixerror() - no longer needed. Should make Metze's refactoring ↵Jeremy Allison2009-07-101-30/+0
| | | | | | a lot easier. Jeremy.
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-2/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-2/+2
| | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-50/+21
| | | | | | negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-3/+3
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-4/+4
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r24498: More extra code into a function, reply_openerror.Jeremy Allison2007-10-101-0/+17
| | | | | Jeremy. (This used to be commit 43ddfb8c918bd27e2efd3b54077db815da80a53a)
* r24464: Now Volker removed the readbmpx we don't need cached errors any more.Jeremy Allison2007-10-101-16/+0
| | | | | Jeremy. (This used to be commit 9256ec0a20f532c7dd7ddc2d3534336a47e6c2d2)
* r24311: add a reply_force_nterror() macroStefan Metzmacher2007-10-101-0/+8
| | | | | metze (This used to be commit b9ae00f4980c305f2f7334b139f9bc72fd9afbd6)
* r24078: Add reply_unixerrorVolker Lendecke2007-10-101-0/+30
| | | | (This used to be commit 10ac991750e9476299d39ac6f763d1638ff8c619)
* r23997: Check in the infrastructure for getting rid of the global ↵Volker Lendecke2007-10-101-0/+26
| | | | | | | | | | | | | | | | | | | InBuffer/OutBuffer The complete history of this patch can be found under http://www.samba.org/~vlendec/inbuf-checkin/. Jeremy, Jerry: If possible I would like to see this in 3.2.0. I'm only checking into 3_2 at the moment, as it currently will slow down operations for all non-converted (i.e. all at this moment) operations, as it will copy the talloc'ed inbuf over the global InBuffer. It will need quite a bit of effort to convert everything necessary for the normal operations an XP box does. I have patches for negprot, session setup, tcon_and_X, open_and_X, close. More to come, but I would appreciate some help here. Volker (This used to be commit 5594af2b208c860d3f4b453af6a649d9e4295d1c)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-6/+6
| | | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy. (This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)
* r17541: When returning a trans2 request, if the "max dataJeremy Allison2007-10-101-2/+6
| | | | | | | | | | | | | | | | | | bytes returned" is less than the amount we want to send, return what we can and set STATUS_BUFFER_OVERFLOW (doserror ERRDOS,ERRbufferoverflow). Required by OS/2 to handle EA's that are too large. It's hard to test this in Samba4 smbtorture as the max data bytes returned is hard coded at 0xffff (as it is in the Samba3 client libraries also). I used a custom version of Samba4 smbtorture to test this out. Might add a "max data bytes" param to make this testable in the build farm. Confirmed by "Guenter Kukkukk (sambaos2)" <sambaos2@kukkukk.com> and Andreas Taegener <atsamba11@eideltown.de> that this fixes the issue. Jeremy. (This used to be commit ff2f1202b76991a404dae8df17c36f8135c8dc51)
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-45/+9
| | | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
* r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison2007-10-101-1/+1
| | | | | | x86_64 box. Jeremy. (This used to be commit d720867a788c735e56d53d63265255830ec21208)
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-12/+11
| | | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2007-10-101-1/+1
| | | | (This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
* r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global ↵Jeremy Allison2007-10-101-62/+81
| | | | | | | nastyness. Jeremy. (This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
* r1093: Ensure we clear any cached errors on a deferred open call soJeremy Allison2007-10-101-0/+11
| | | | | | we don't return the wrong error code on the next packet. Jeremy. (This used to be commit c1b06deb574d7b8e746bdf0d6f0eab16848a6cc1)
* r478: Added Volkers fix to be able to force DOS errors when needed.Jeremy Allison2007-10-101-4/+4
| | | | | Jeremy. (This used to be commit a9d1738ebab42ab9bab73f18341d79e086e290b3)
* Correct fix for excel read-only bug. Add panic for logic error in developer ↵Jeremy Allison2003-10-021-3/+7
| | | | | | | mode. Jeremy. (This used to be commit f00af98f379463829b1ef62d78dda0365c1d7997)
* Fix for not opening Excel 2000 files that are read-only. Needs tidyingJeremy Allison2003-10-021-3/+4
| | | | | | up but works for now. Jeremy. (This used to be commit 9ad9e0dfafed4558e5ab215991d9912cd44f1127)
* Fix to correctly return NT_STATUS_DELETE_PENDING.Jeremy Allison2002-11-051-0/+3
| | | | | Jeremy. (This used to be commit 4ec381d64249203e0924b86600fe8e67ada1cb5b)
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-1/+1
| | | | (This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
* Added "nt status support" parameter. Fix offline synchronisation.Jeremy Allison2002-02-271-5/+11
| | | | | Jeremy. (This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Fixup error mapping so we have only one table containing errno -> dos error ↵Jeremy Allison2002-01-161-38/+14
| | | | | | | | -> NT STATUS maps. Fixes problem with disk full returning incorrect error. Jeremy. (This used to be commit 16fcbf3c1ccf1d704765653f68395dd596c0d841)
* Restored old Bmpx code - actually used by OS/2.Jeremy Allison2001-10-191-0/+16
| | | | | Jeremy. (This used to be commit 7c1688fd67c1bda1477aaf870371c825280db870)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* added filename to error_packet()Andrew Tridgell2001-09-051-7/+8
| | | | (This used to be commit 2c424788dec2fd6e44c243ea115d66689dfae6c0)
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-1/+1
| | | | | | the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-2/+2
| | | | (This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-5/+5
| | | | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs (This used to be commit 1b778bc7d22efff3f90dc450eb12baa1241cf68f)
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-71/+58
| | | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night (This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
* Patch from Sean.Batt@anu.edu.au to ensure error reporting is done beforeJeremy Allison2001-03-261-3/+3
| | | | | | any code that could modify errno is called. Jeremy. (This used to be commit 109a174de9e23ccc89ae17d6b5b425b5947c8565)
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
* more merging voodooAndrew Tridgell2000-05-101-0/+4
| | | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done (This used to be commit 92109d7b3c06f240452d39f669ecb8c9c86ab610)
* move soem variables from server.c that don't belong there.Andrew Tridgell1998-08-171-0/+4
| | | | (This used to be commit f92475aa3cb3ade576c39c02c7996c949c42082a)
* this completes the splitup of server.c.Andrew Tridgell1998-08-171-0/+142
the splitup was done with an axe, not a scalpel, so there are some rough edges. I mostly wanted to get the general form right with fine tuning of what goes where to come later. Still, this is better than what we had before where server.c was a general repository for anything that didn't fit elsewhere. (This used to be commit a6d194886a4a5f7507fa37289ff96c1be56f14a6)