From 1556b9b53c69c2a5b2ac2bdfea46df7725094cf8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 Mar 2003 22:15:37 +0000 Subject: Fix DOS del command with widelinks = False. Jeremy. (This used to be commit ae754e9355c78c22ff5ca5a7f3276e61b4a8fcb7) --- source3/smbd/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit