mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c
This commit is contained in:
parent
f429baca86
commit
6bad1fa1fd
@ -1,17 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "libbb.h"
|
||||
|
||||
extern int seek_ared_file(FILE *in_file, ar_headers_t *headers, const char *tar_gz_file)
|
||||
{
|
||||
/* find the headers for the specified .tar.gz file */
|
||||
while (headers->next != NULL) {
|
||||
if (strcmp(headers->name, tar_gz_file) == 0) {
|
||||
fseek(in_file, headers->offset, SEEK_SET);
|
||||
return(EXIT_SUCCESS);
|
||||
}
|
||||
headers = headers->next;
|
||||
}
|
||||
|
||||
return(EXIT_FAILURE);
|
||||
}
|
Loading…
Reference in New Issue
Block a user