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 @@ 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);