|
From: | Paul Eggert |
Subject: | Re: [PATCH] Fix some temp file issues |
Date: | Sat, 8 Oct 2022 15:22:50 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 |
On 2022-10-08 00:14, Eli Zaretskii wrote:
tmpfile uses "wb+" (POSIX requires this) and we should be consistent in all the paths that create temporary FILE *. The attached patch adds a comment about this.I don't remember: where is this temporary file read?
It's read by a different process (fork+exec), so it doesn't matter for 'make' now whether it uses "w+" or "w". It matters only for possible future changes to 'make' later, assuming we ever change other parts of 'make' to sometimes need read access via the same FILE *.
[Prev in Thread] | Current Thread | [Next in Thread] |