9
0
Fork 0

uimage: Fix deleting of temporary file

the uImage support may generate a temporary file which ought to be deleted
after usage. Due to the wrong filename this never happened. Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-10-30 14:59:07 +01:00
parent 3a17af33c0
commit 2d1ceaff2f
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ void uimage_close(struct uimage_handle *handle)
free(handle->name);
free(handle);
if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat("/.uimage_tmp", &s))
unlink("/.uimage_tmp");
if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat(uimage_tmp, &s))
unlink(uimage_tmp);
}
EXPORT_SYMBOL(uimage_close);