summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar BALATON Zoltan2015-09-15 00:41:47 +0200
committerGravatar BALATON Zoltan2017-02-07 18:06:41 +0100
commit91e01aa577acbfe9aa5e611a70e4c1c1b3407304 (patch)
treee8cf86bbc120fad956126041eac7c52b13ac3e43 /src
parentcae1734c597371e7c3ccd384434e638071843249 (diff)
downloadidevicerestore-91e01aa577acbfe9aa5e611a70e4c1c1b3407304.tar.gz
idevicerestore-91e01aa577acbfe9aa5e611a70e4c1c1b3407304.tar.bz2
Use udid as temp file name prefix to make it more unique and avoid race conditions when tempnam generated name is not random enough.
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 807047c..d354ac6 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1566,7 +1566,7 @@ int restore_send_baseband_data(restored_client_t restore, struct idevicerestore_
}
// extract baseband firmware to temp file
- bbfwtmp = tempnam(NULL, "bbfw_");
+ bbfwtmp = tempnam(NULL, client->udid);
if (!bbfwtmp) {
error("WARNING: Could not generate temporary filename, using bbfw.tmp\n");
bbfwtmp = strdup("bbfw.tmp");