summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-26 22:15:37 +0000
committerJeremy Allison <jra@samba.org>2003-03-26 22:15:37 +0000
commit1556b9b53c69c2a5b2ac2bdfea46df7725094cf8 (patch)
tree2bb55bc3341a3b53a6578e283032e439d46d9a52 /source3/smbd
parent4c74bfcbda44f868bcfd2f5edae0868bab890626 (diff)
downloadsamba-1556b9b53c69c2a5b2ac2bdfea46df7725094cf8.tar.gz
samba-1556b9b53c69c2a5b2ac2bdfea46df7725094cf8.tar.bz2
samba-1556b9b53c69c2a5b2ac2bdfea46df7725094cf8.zip
Fix DOS del command with widelinks = False.
Jeremy. (This used to be commit ae754e9355c78c22ff5ca5a7f3276e61b4a8fcb7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 1a1c84efed..bf74d997b8 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -401,7 +401,8 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
if (check_name(name,conn)) {
if (VALID_STAT(sbuf) || vfs_stat(conn,name,&sbuf) == 0)
- ok = S_ISDIR(sbuf.st_mode);
+ if (!(ok = S_ISDIR(sbuf.st_mode)))
+ errno = ENOTDIR;
}
if (!ok) {