summaryrefslogtreecommitdiff
path: root/source3/smbd/error.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-10 18:23:00 -0700
committerJeremy Allison <jra@samba.org>2009-07-10 18:23:00 -0700
commit2000421c592b672898f85758638be74d8485da1e (patch)
tree9bd5f3a3ad130d855bf2233d39cbbe6c2edf7f95 /source3/smbd/error.c
parent361aa19e69d4176dd8c30f485cc637cd33308d62 (diff)
downloadsamba-2000421c592b672898f85758638be74d8485da1e.tar.gz
samba-2000421c592b672898f85758638be74d8485da1e.tar.bz2
samba-2000421c592b672898f85758638be74d8485da1e.zip
Remove reply_unixerror() - no longer needed. Should make Metze's refactoring a lot easier.
Jeremy.
Diffstat (limited to 'source3/smbd/error.c')
-rw-r--r--source3/smbd/error.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/source3/smbd/error.c b/source3/smbd/error.c
index ce22f86414..874efa2a0b 100644
--- a/source3/smbd/error.c
+++ b/source3/smbd/error.c
@@ -136,33 +136,3 @@ void reply_openerror(struct smb_request *req, NTSTATUS status)
reply_nterror(req, status);
}
}
-
-void reply_unix_error(struct smb_request *req, uint8 defclass, uint32 defcode,
- NTSTATUS defstatus, int line, const char *file)
-{
- int eclass=defclass;
- int ecode=defcode;
- NTSTATUS ntstatus = defstatus;
- int i=0;
-
- TALLOC_FREE(req->outbuf);
- reply_outbuf(req, 0, 0);
-
- if (errno != 0) {
- DEBUG(3,("unix_error_packet: error string = %s\n",
- strerror(errno)));
-
- while (unix_dos_nt_errmap[i].dos_class != 0) {
- if (unix_dos_nt_errmap[i].unix_error == errno) {
- eclass = unix_dos_nt_errmap[i].dos_class;
- ecode = unix_dos_nt_errmap[i].dos_code;
- ntstatus = unix_dos_nt_errmap[i].nt_error;
- break;
- }
- i++;
- }
- }
-
- error_packet_set((char *)req->outbuf, eclass, ecode, ntstatus,
- line, file);
-}