Re: [PATCH/RFC v3 7/9] write_entry(): use fstat() instead of lstat() when file is open
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 5, 2009, 17:45 UTC
- Message-ID
- <7veiyceq1p.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0902051202440.7491@intel-tinevez-2-302>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Of course, what we _really_ would do is to provide a flag, say, > FSTAT_UNRELIABLE and test for _that_ (after defining it in the Makefile > for the appropriate platforms).
Sounds sensible. POSIX of course requires write(), pwrite() and friends to mark the mtime for update and fstat() to be reliable, but there may be "not quite POSIX" systems.