[File] [patch] Don't use stale statbuf

Steven Grubb sgrubb at redhat.com
Mon Jan 19 17:51:42 UTC 2026


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: <https://mailman.astron.com/pipermail/file/attachments/20260119/8b340314/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: okstat.patch
Type: text/x-patch
Size: 1162 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20260119/8b340314/attachment.bin>


More information about the File mailing list