summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/reply.c')
-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 5942d63206..59a94964fb 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1049,7 +1049,7 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
mode = SVAL(inbuf,smb_vwv0);
if (check_name(name,conn)) {
- if(VALID_STAT(sbuf))
+ if (VALID_STAT(sbuf) || vfs_stat(conn,name,&sbuf) == 0)
ok = S_ISDIR(sbuf.st_mode);
}