From fa4b83ce922314892c90caaf5c7216be5e73ccd7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 Mar 2003 22:15:21 +0000 Subject: Fix DOS del command with widelinks = False. Jeremy. (This used to be commit ef1782121bc4ebcdd2731fd6863209352f815dbe) --- source3/smbd/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 052884480b..acd8dbbc7c 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -397,7 +397,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