From 2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 30 Oct 2012 14:59:07 +0100 Subject: 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 --- common/uimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/uimage.c') diff --git a/common/uimage.c b/common/uimage.c index c72db417a5..3a9753459a 100644 --- a/common/uimage.c +++ b/common/uimage.c @@ -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); -- cgit v1.2.3