diff --git a/src/core/image.c b/src/core/image.c index 4101ff3b..d9d91013 100644 --- a/src/core/image.c +++ b/src/core/image.c @@ -409,6 +409,8 @@ int image_select ( struct image *image ) { /* Check that this image can be executed */ if ( ( rc = image_probe ( image ) ) != 0 ) return rc; + if ( ! image->type->exec ) + return -ENOEXEC; /* Mark image as selected */ image->flags |= IMAGE_SELECTED;