summaryrefslogtreecommitdiffstats
path: root/source/msdfs/msdfs.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-27 08:19:43 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-27 08:19:43 +0000
commit83d9896c1ea8be796192b51a4678c2a3b87f7518 (patch)
tree3eca52e51950890d1a5b6e7c8b0ddfdee78a239a /source/msdfs/msdfs.c
parent9e0c9a99f6ca01cd6a0ee3084f85e1c36b11d7c3 (diff)
downloadsamba-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/msdfs/msdfs.c')
-rw-r--r--source/msdfs/msdfs.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/msdfs/msdfs.c b/source/msdfs/msdfs.c
index 1fa16d40060..3377507ca3a 100644
--- a/source/msdfs/msdfs.c
+++ b/source/msdfs/msdfs.c
@@ -23,7 +23,6 @@
extern int DEBUGLEVEL;
extern pstring global_myname;
-extern uint32 global_client_caps;
#ifdef WITH_MSDFS
@@ -598,17 +597,6 @@ int setup_dfs_referral(char* pathname, int max_referral_level, char** ppdata)
return reply_size;
}
-int dfs_path_error(char* inbuf, char* outbuf)
-{
- enum remote_arch_types ra_type = get_remote_arch();
- BOOL NT_arch = ((ra_type==RA_WINNT) || (ra_type == RA_WIN2K));
- if(NT_arch && (global_client_caps & (CAP_NT_SMBS | CAP_STATUS32)) ) {
- SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | FLAGS2_32_BIT_ERROR_CODES);
- return(ERROR(0,0xc0000000|NT_STATUS_PATH_NOT_COVERED));
- }
- return(ERROR(ERRSRV,ERRbadpath));
-}
-
/**********************************************************************
The following functions are called by the NETDFS RPC pipe functions
**********************************************************************/