Changeset View
Changeset View
Standalone View
Standalone View
stand/common/interp_simple.c
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | interp_include(const char *filename) | ||||
int fd, flags, line; | int fd, flags, line; | ||||
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 | |||||
if (verify_file(fd, filename, 0, VE_GUESS) < 0) { | |||||
close(fd); | |||||
sprintf(command_errbuf,"can't verify '%s'", filename); | |||||
return(CMD_ERROR); | |||||
} | |||||
#endif | |||||
/* | /* | ||||
* Read the script into memory. | * Read the script into memory. | ||||
*/ | */ | ||||
script = se = NULL; | script = se = NULL; | ||||
line = 0; | line = 0; | ||||
while (fgetstr(input, sizeof(input), fd) >= 0) { | while (fgetstr(input, sizeof(input), fd) >= 0) { | ||||
line++; | line++; | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |