diff options
author | BALATON Zoltan | 2015-09-15 00:41:47 +0200 |
---|---|---|
committer | BALATON Zoltan | 2017-02-07 18:06:41 +0100 |
commit | 91e01aa577acbfe9aa5e611a70e4c1c1b3407304 (patch) | |
tree | e8cf86bbc120fad956126041eac7c52b13ac3e43 /src/restore.c | |
parent | cae1734c597371e7c3ccd384434e638071843249 (diff) | |
download | idevicerestore-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/restore.c')
-rw-r--r-- | src/restore.c | 2 |
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"); |