mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Don't pass the password in the command line when doing listShares
This commit is contained in:
parent
59bc57cc06
commit
f57f29d277
3 changed files with 33 additions and 15 deletions
|
|
@ -200,15 +200,15 @@ class Share {
|
|||
}
|
||||
list($error,) = explode(' ', $lines[0]);
|
||||
switch ($error) {
|
||||
case 'NT_STATUS_OBJECT_PATH_NOT_FOUND':
|
||||
case 'NT_STATUS_OBJECT_NAME_NOT_FOUND':
|
||||
case 'NT_STATUS_NO_SUCH_FILE':
|
||||
case ErrorCodes::PathNotFound:
|
||||
case ErrorCodes::ObjectNotFound:
|
||||
case ErrorCodes::NoSuchFile:
|
||||
throw new NotFoundException();
|
||||
case 'NT_STATUS_OBJECT_NAME_COLLISION':
|
||||
case ErrorCodes::NameCollision:
|
||||
throw new AlreadyExistsException();
|
||||
case 'NT_STATUS_ACCESS_DENIED':
|
||||
case ErrorCodes::AccessDenied:
|
||||
throw new AccessDeniedException();
|
||||
case 'NT_STATUS_DIRECTORY_NOT_EMPTY':
|
||||
case ErrorCodes::DirectoryNotEmpty:
|
||||
throw new NotEmptyException();
|
||||
default:
|
||||
throw new \Exception();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue