From 942f5fa3eb43b8c3c119f531b6bed9b2a619151d Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 30 Dec 2024 06:09:51 +0000 Subject: slbt_ar_store_archive(): guard against 32-bit st_ino types. --- src/arbits/slbt_archive_store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/arbits') diff --git a/src/arbits/slbt_archive_store.c b/src/arbits/slbt_archive_store.c index 7830784..e303cb7 100644 --- a/src/arbits/slbt_archive_store.c +++ b/src/arbits/slbt_archive_store.c @@ -42,6 +42,7 @@ int slbt_ar_store_archive( int fdat; int fdtmp; int64_t tint; + int64_t stino; void * addr; char * mark; char * slash; @@ -91,6 +92,7 @@ int slbt_ar_store_archive( dctx,0); } + stino = st.st_ino; buflen = sizeof(buf) - (mark - buf); nbytes = snprintf( mark, @@ -101,7 +103,7 @@ int slbt_ar_store_archive( ".salt.%p" ".pid.%d" ".tmp", - st.st_ino, + stino, tint,addr, getpid()); -- cgit v1.2.3