From sgrubb at redhat.com Mon Jan 19 17:51:42 2026 From: sgrubb at redhat.com (Steven Grubb) Date: Mon, 19 Jan 2026 12:51:42 -0500 Subject: [File] [patch] Don't use stale statbuf Message-ID: Hello, If for some reason stat fails, when it calls into close_and_restore, we should not use the exist sb variable to restore the time stamps. The attached patch passes okstat into close_and _restore and returns after closing the descriptor if okstat is 0. -Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: okstat.patch Type: text/x-patch Size: 1162 bytes Desc: not available URL: From christos at zoulas.com Mon Jan 19 18:54:12 2026 From: christos at zoulas.com (Christos Zoulas) Date: Mon, 19 Jan 2026 13:54:12 -0500 Subject: [File] [patch] Don't use stale statbuf In-Reply-To: References: Message-ID: You got it! Thanks, christos > On Jan 19, 2026, at 12:51?PM, Steven Grubb wrote: > > Hello, > > > > If for some reason stat fails, when it calls into close_and_restore, we should not use the exist sb variable to restore the time stamps. The attached patch passes okstat into close_and _restore and returns after closing the descriptor if okstat is 0. > > > -Steve > > > -- > File mailing list > File at astron.com > https://mailman.astron.com/mailman/listinfo/file > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 235 bytes Desc: Message signed with OpenPGP URL: