aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/cpio.c')
-rw-r--r--com32/sysdump/cpio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/com32/sysdump/cpio.c b/com32/sysdump/cpio.c
index dfc7c946..81d0d4be 100644
--- a/com32/sysdump/cpio.c
+++ b/com32/sysdump/cpio.c
@@ -12,8 +12,6 @@
#include "backend.h"
#include "ctime.h"
-static uint32_t now;
-
int cpio_pad(struct backend *be)
{
static char pad[4]; /* Up to 4 zero bytes */
@@ -40,7 +38,7 @@ int cpio_hdr(struct backend *be, uint32_t mode, size_t datalen,
0, /* c_uid */
0, /* c_gid */
1, /* c_nlink */
- now, /* c_mtime */
+ be->now, /* c_mtime */
datalen, /* c_filesize */
0, /* c_maj */
0, /* c_min */
@@ -54,12 +52,6 @@ int cpio_hdr(struct backend *be, uint32_t mode, size_t datalen,
return rv;
}
-int cpio_init(struct backend *be, const char *argv[])
-{
- now = posix_time();
- return init_data(be, argv);
-}
-
int cpio_mkdir(struct backend *be, const char *filename)
{
return cpio_hdr(be, MODE_DIR, 0, filename);