summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-29 23:35:39 +0000
committerJeremy Allison <jra@samba.org>2003-09-29 23:35:39 +0000
commit0dde70c2330b7fad898f27ba3102f425a8e5f579 (patch)
treec05d34769d983c15ae125e7939ed2cbe0ff3d57d /source3
parent10ab4ce58abbd9b38bfb43165452cf45005159b4 (diff)
downloadsamba-0dde70c2330b7fad898f27ba3102f425a8e5f579.tar.gz
samba-0dde70c2330b7fad898f27ba3102f425a8e5f579.tar.bz2
samba-0dde70c2330b7fad898f27ba3102f425a8e5f579.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 294f376aa908a9c56b73b9bfe48d56012a8f557b)
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) {