diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 14:59:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 18:39:38 +0100 |
commit | 2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef (patch) | |
tree | 2cf6c0acf4d2025b45c12f6dd014f2ed31ce56bb | |
parent | 3a17af33c01fd066ab3939c8218037c87ba26eed (diff) | |
download | barebox-2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef.tar.gz barebox-2d1ceaff2f905f4a2bd7e6c539e7dd3d8d8e9bef.tar.xz |
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>
-rw-r--r-- | common/uimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |