diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-27 08:19:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-27 08:19:43 +0000 |
commit | 83d9896c1ea8be796192b51a4678c2a3b87f7518 (patch) | |
tree | 3eca52e51950890d1a5b6e7c8b0ddfdee78a239a /source/smbd/notify.c | |
parent | 9e0c9a99f6ca01cd6a0ee3084f85e1c36b11d7c3 (diff) | |
download | samba-83d9896c1ea8be796192b51a4678c2a3b87f7518.tar.gz samba-83d9896c1ea8be796192b51a4678c2a3b87f7518.tar.xz samba-83d9896c1ea8be796192b51a4678c2a3b87f7518.zip |
converted smbd to use NTSTATUS by default
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
Diffstat (limited to 'source/smbd/notify.c')
-rw-r--r-- | source/smbd/notify.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source/smbd/notify.c b/source/smbd/notify.c index 3c21ce1e1b5..a2a979b776c 100644 --- a/source/smbd/notify.c +++ b/source/smbd/notify.c @@ -54,16 +54,7 @@ static void change_notify_reply_packet(char *inbuf, uint32 error_code) memset(outbuf, '\0', sizeof(outbuf)); construct_reply_common(inbuf, outbuf); - /* - * If we're returning a 'too much in the directory changed' we need to - * set this is an NT error status flags. If we don't then the (probably - * untested) code in the NT redirector has a bug in that it doesn't re-issue - * the change notify.... Ah - I *love* it when I get so deeply into this I - * can even determine how MS failed to test stuff and why.... :-). JRA. - */ - - SSVAL(outbuf,smb_flg2, SVAL(outbuf,smb_flg2) | FLAGS2_32_BIT_ERROR_CODES); - ERROR(0,error_code); + ERROR_NT(error_code); /* * Seems NT needs a transact command with an error code |