Skip to content

Commit 21a8f21

Browse files
committed
Ignore LMI Tape ID header and have dumptape make files that decode_lmfl will read.
1 parent a9631c3 commit 21a8f21

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/decode_lmfl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ int process(char *name){
362362
// printf("DONT-SUPERSEDE: %s\n",headerword);
363363
found = 1;
364364
}
365+
if(strcmp(headerword,":LMI-TID") == 0){
366+
headerword = strtok(NULL,"\" ");
367+
// printf("LMI-TID: %s\n",headerword);
368+
found = 1;
369+
}
365370
if(strcmp(headerword,":DONT-REAP") == 0){
366371
// Did this come from ITS?
367372
headerword = strtok(NULL,"\" ");

tools/dumptape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int main(int argc, char *argv[]){
117117
// We have a block
118118
ssize_t rv;
119119
if(out_fd == -1){
120-
sprintf(ofname,"file-%d.bin",ofnumber);
120+
sprintf(ofname,"file-%d.dat",ofnumber);
121121
out_fd = open(ofname,O_RDWR|O_CREAT,0660);
122122
if(out_fd < 0){
123123
perror("Output:open");

0 commit comments

Comments
 (0)