summaryrefslogtreecommitdiffstats
path: root/common/uimage.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-30 14:59:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-30 18:39:38 +0100
commit2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef (patch)
tree2cf6c0acf4d2025b45c12f6dd014f2ed31ce56bb /common/uimage.c
parent3a17af33c01fd066ab3939c8218037c87ba26eed (diff)
downloadbarebox-2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef.tar.gz
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>
Diffstat (limited to 'common/uimage.c')
-rw-r--r--common/uimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/uimage.c b/common/uimage.c
index c72db41..3a97534 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);