From d1383915089af484e68ae5ce03f5c20e78ad0726 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 30 Apr 2023 21:25:55 -0400 Subject: ustar: Move SOURCE_DATE_EPOCH code to opk/write This way it runs only once (without resorting to static variables) across all headers in all ustar archives. Also, opk/write now prints an informative error message. --- (limited to 'src/ustar.h') diff --git a/src/ustar.h b/src/ustar.h index 679f8ae..4c51070 100644 --- a/src/ustar.h +++ b/src/ustar.h @@ -90,7 +90,7 @@ int opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar, struct opkg_opk_dirent *dirent, uint16_t mode, uid_t uid, const char *uname, gid_t gid, const char *gname, - uint64_t size, char type, const char *linkname); + uint64_t size, int64_t mtime, char type, const char *linkname); int opkg_opk_ustar_get_buffer(struct opkg_opk_ustar *ustar, char **buffer, -- cgit v0.9.1