Changeset View
Changeset View
Standalone View
Standalone View
stand/common/interp_simple.c
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | interp_include(const char *filename) | ||||
if (((fd = open(filename, O_RDONLY)) == -1)) { | if (((fd = open(filename, O_RDONLY)) == -1)) { | ||||
snprintf(command_errbuf, sizeof(command_errbuf), | snprintf(command_errbuf, sizeof(command_errbuf), | ||||
"can't open '%s': %s", filename, strerror(errno)); | "can't open '%s': %s", filename, strerror(errno)); | ||||
return(CMD_ERROR); | return(CMD_ERROR); | ||||
} | } | ||||
#ifdef LOADER_VERIEXEC | #ifdef LOADER_VERIEXEC | ||||
#if defined(EFI) && defined(EFI_SECUREBOOT) | |||||
ve_efi_init(); | |||||
#endif | |||||
if (verify_file(fd, filename, 0, VE_GUESS) < 0) { | if (verify_file(fd, filename, 0, VE_GUESS) < 0) { | ||||
close(fd); | close(fd); | ||||
sprintf(command_errbuf,"can't verify '%s'", filename); | sprintf(command_errbuf,"can't verify '%s'", filename); | ||||
return(CMD_ERROR); | return(CMD_ERROR); | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |