summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-29 23:35:41 +0000
committerJeremy Allison <jra@samba.org>2003-09-29 23:35:41 +0000
commit57c863190db9ac80529866ec6408bb03ef5e514c (patch)
tree9bb64e6e54ef085e62255669a810c174ab46dc05 /source3
parentecd8cc4ef29327f205e76093fd744a837421fee6 (diff)
downloadsamba-57c863190db9ac80529866ec6408bb03ef5e514c.tar.gz
samba-57c863190db9ac80529866ec6408bb03ef5e514c.tar.bz2
samba-57c863190db9ac80529866ec6408bb03ef5e514c.zip
Take care of condition where DOS and NT error codes must differ. Found by
DOS program test by Amir Hardon <hardon@actcom.co.il>. Jeremy. (This used to be commit c11a7e5846002b16d0cb2991b5a7df0636b070d5)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 6ac4cffddb..303e33cc48 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -417,7 +417,7 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
if (check_name(name,conn)) {
if (VALID_STAT(sbuf) || SMB_VFS_STAT(conn,name,&sbuf) == 0)
if (!(ok = S_ISDIR(sbuf.st_mode)))
- errno = ENOTDIR;
+ return ERROR_BOTH(NT_STATUS_NOT_A_DIRECTORY,ERRDOS,ERRbadpath);
}
if (!ok) {