A bit off beam, but it's what I just did in my workshop…
This morning the top button 'pinged' off my jeans, the rivet just pulled through the hole
Normally that's the end but these aren't anywhere near worn out otherwise.
I noticed a narrower shank in the rivet part visible between the two parts. Pushed it back through the waistband and added a C-clip, which is a few mm larger in OD than the rivet. Job done!
Neil