diff options
author | Jeremy Allison <jra@samba.org> | 2003-03-26 22:15:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-03-26 22:15:21 +0000 |
commit | fa4b83ce922314892c90caaf5c7216be5e73ccd7 (patch) | |
tree | dc9a860fac5ea2d9087e1d4150fff44671956ded /source3 | |
parent | b39659bcbe61812c3c4616eb2404bf9e4d768366 (diff) | |
download | samba-fa4b83ce922314892c90caaf5c7216be5e73ccd7.tar.gz samba-fa4b83ce922314892c90caaf5c7216be5e73ccd7.tar.bz2 samba-fa4b83ce922314892c90caaf5c7216be5e73ccd7.zip |
Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ef1782121bc4ebcdd2731fd6863209352f815dbe)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |