From: Michael Brown Date: Tue, 26 Nov 2013 16:29:45 +0000 (+0000) Subject: [image] Allow for non-executable image formats X-Git-Tag: v1.20.1~1355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c161283d545f9f4aafc90a0c5fa10577a3998c4;p=thirdparty%2Fipxe.git [image] Allow for non-executable image formats Signed-off-by: Michael Brown --- diff --git a/src/core/image.c b/src/core/image.c index 4101ff3b5..d9d91013e 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;