Don't proceed if no permissions

This commit is contained in:
2019-12-15 11:40:50 -05:00
parent ff0984d1c8
commit 450f4de756

View File

@@ -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;