summaryrefslogtreecommitdiffstats
path: root/src/opk/opk.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-22 20:40:43 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-28 19:10:32 (EDT)
commit2a5c9127ad298fd8ad11579f33c4d931d59c53dc (patch)
treeea5a9cb9cd17771dc5aa4cbb1e9e26593910046f /src/opk/opk.h
parent194db3b3400e2f56a91e1e97ab14f6a475d4ea75 (diff)
opk/write: Fix path length handling, add virt path
Diffstat (limited to 'src/opk/opk.h')
-rw-r--r--src/opk/opk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opk/opk.h b/src/opk/opk.h
index d66e0a7..e57be4f 100644
--- a/src/opk/opk.h
+++ b/src/opk/opk.h
@@ -39,7 +39,9 @@ struct opkg_opk_opk {
int list_control;
int list_data;
const char *control_dir;
+ size_t control_dir_len;
const char *data_dir;
+ size_t data_dir_len;
FILE *file;
struct opkg_opk_specials *specials;
char file_buffer[8192];
@@ -52,8 +54,8 @@ struct opkg_opk_opk {
struct opkg_opk_gzip *inner_gzip;
struct opkg_opk_ustar *inner_ustar;
int previously_printed;
- size_t path_len;
- char *path;
+ char *path_real;
+ char *path_virt;
char *temp_file_name;
};