summaryrefslogtreecommitdiff
path: root/src/arbits/slbt_archive_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arbits/slbt_archive_store.c')
-rw-r--r--src/arbits/slbt_archive_store.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_store.c b/src/arbits/slbt_archive_store.c
index d09a3f0..7830784 100644
--- a/src/arbits/slbt_archive_store.c
+++ b/src/arbits/slbt_archive_store.c
@@ -41,6 +41,7 @@ int slbt_ar_store_archive(
struct stat st;
int fdat;
int fdtmp;
+ int64_t tint;
void * addr;
char * mark;
char * slash;
@@ -74,6 +75,7 @@ int slbt_ar_store_archive(
fdat = slbt_driver_fdcwd(dctx);
addr = buf;
+ tint = time(0);
mark = (slash = strrchr(buf,'/'))
? slash : buf;
@@ -100,7 +102,7 @@ int slbt_ar_store_archive(
".pid.%d"
".tmp",
st.st_ino,
- time(0),addr,
+ tint,addr,
getpid());
if (nbytes >= buflen)