Don't proceed if no permissions
This commit is contained in:
@@ -16,7 +16,7 @@ int complete_stage(struct pwned_device *device, stage_function *func)
|
||||
int ret;
|
||||
|
||||
ret = get_device_bundle(device);
|
||||
if(ret == LIBUSB_ERROR_NO_DEVICE)
|
||||
if(ret == LIBUSB_ERROR_NO_DEVICE || ret == LIBUSB_ERROR_ACCESS)
|
||||
{
|
||||
checkm8_debug_indent("\tfailed to get device bundle\n");
|
||||
return CHECKM8_FAIL_NODEV;
|
||||
|
||||
Reference in New Issue
Block a user