mirror of
https://github.com/samba-team/samba.git
synced 2025-09-06 17:44:20 +03:00
Fix DOS del command with widelinks = False.
Jeremy.
This commit is contained in:
@@ -401,7 +401,8 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
|
|||||||
|
|
||||||
if (check_name(name,conn)) {
|
if (check_name(name,conn)) {
|
||||||
if (VALID_STAT(sbuf) || vfs_stat(conn,name,&sbuf) == 0)
|
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) {
|
if (!ok) {
|
||||||
|
Reference in New Issue
Block a user