summaryrefslogtreecommitdiff
path: root/source3/smbd/error.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-19 00:56:03 +0000
committerJeremy Allison <jra@samba.org>2001-10-19 00:56:03 +0000
commit6cc3953196e3feb340f7b9b7bb823575414c5683 (patch)
tree28bf3943f76f952a8c2bb38e47dc22cadf38fffb /source3/smbd/error.c
parentb49b5b94818827da43dee53346ced84c789fd73d (diff)
downloadsamba-6cc3953196e3feb340f7b9b7bb823575414c5683.tar.gz
samba-6cc3953196e3feb340f7b9b7bb823575414c5683.tar.bz2
samba-6cc3953196e3feb340f7b9b7bb823575414c5683.zip
Restored old Bmpx code - actually used by OS/2.
Jeremy. (This used to be commit 7c1688fd67c1bda1477aaf870371c825280db870)
Diffstat (limited to 'source3/smbd/error.c')
-rw-r--r--source3/smbd/error.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/smbd/error.c b/source3/smbd/error.c
index 913f2ac266..3c829deb09 100644
--- a/source3/smbd/error.c
+++ b/source3/smbd/error.c
@@ -25,6 +25,22 @@
int unix_ERR_class=SMB_SUCCESS;
int unix_ERR_code=0;
+/****************************************************************************
+ Create an error packet from a cached error.
+****************************************************************************/
+
+int cached_error_packet(char *outbuf,files_struct *fsp,int line,const char *file)
+{
+ write_bmpx_struct *wbmpx = fsp->wbmpx_ptr;
+
+ int32 eclass = wbmpx->wr_errclass;
+ int32 err = wbmpx->wr_error;
+
+ /* We can now delete the auxiliary struct */
+ free((char *)wbmpx);
+ fsp->wbmpx_ptr = NULL;
+ return error_packet(outbuf,NT_STATUS_OK,eclass,err,line,file);
+}
struct
{