summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-05-19 22:30:32 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-20 15:43:59 +0200
commitdbbf5dbc60609e73193bd7f280a8eb979efbe2c3 (patch)
tree11f26c14ee23d2728f7ce87263535b6df9986305 /include
parentc5946e53431bb2aad1ec2a8dc1517955153e56ef (diff)
downloadbarebox-dbbf5dbc60609e73193bd7f280a8eb979efbe2c3.tar.gz
barebox-dbbf5dbc60609e73193bd7f280a8eb979efbe2c3.tar.xz
fastboot: Use unique tempfile name
With fastboot over ethernet we now can have two instances of fastboot running in parallel. Make sure that both instances use a different temporary file to store data so that they do not influence each other. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fastboot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fastboot.h b/include/fastboot.h
index 3b6cae8a58..b3e7155efa 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -25,6 +25,7 @@ struct fastboot {
const char *filename, const void *buf, size_t len);
int download_fd;
void *buf;
+ char *tempname;
bool active;