Re: Use make_tempname file descriptor in smart_rename

PR 27456
	* rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.

(cherry picked from commit 40b02646ec)
This commit is contained in:
Alan Modra 2021-02-25 09:46:02 +10:30
parent 08bdb5f4f9
commit 1aad0a424a
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,10 @@
2021-02-26 Alan Modra <amodra@gmail.com>
Backport from mainline
2021-02-25 Alan Modra <amodra@gmail.com>
PR 27456
* rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
2021-02-24 Alan Modra <amodra@gmail.com>
Siddhesh Poyarekar <siddhesh@gotplt.org>
PR 27456

View File

@ -35,7 +35,8 @@
Return 0 if ok, -1 if error. */
static int
simple_copy (int fromfd, const char *to, struct stat *target_stat)
simple_copy (int fromfd, const char *to,
struct stat *target_stat ATTRIBUTE_UNUSED)
{
int tofd, nread;
int saved;