mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Take care of condition where DOS and NT error codes must differ. Found by
DOS program test by Amir Hardon <hardon@actcom.co.il>. Jeremy.
This commit is contained in:
parent
7bd450f8b6
commit
294f376aa9
@ -417,7 +417,7 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
|
||||
if (check_name(name,conn)) {
|
||||
if (VALID_STAT(sbuf) || SMB_VFS_STAT(conn,name,&sbuf) == 0)
|
||||
if (!(ok = S_ISDIR(sbuf.st_mode)))
|
||||
errno = ENOTDIR;
|
||||
return ERROR_BOTH(NT_STATUS_NOT_A_DIRECTORY,ERRDOS,ERRbadpath);
|
||||
}
|
||||
|
||||
if (!ok) {
|
||||
|
Loading…
Reference in New Issue
Block a user