mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix errno comparison
This commit is contained in:
parent
e58b72e488
commit
967a7a6898
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ class NativeShare implements IShare {
|
||||||
throw new AlreadyExistsException($errstr);
|
throw new AlreadyExistsException($errstr);
|
||||||
} else if (strpos($errstr, 'Can\'t write to a directory') or
|
} else if (strpos($errstr, 'Can\'t write to a directory') or
|
||||||
strpos($errstr, 'use rmdir instead') or
|
strpos($errstr, 'use rmdir instead') or
|
||||||
$errno = 20 // 20: ENOTDIR
|
$errno === 20 // 20: ENOTDIR
|
||||||
) {
|
) {
|
||||||
throw new InvalidTypeException($errstr);
|
throw new InvalidTypeException($errstr);
|
||||||
} else if (strpos($errstr, 'Workgroup not found') or
|
} else if (strpos($errstr, 'Workgroup not found') or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue