diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/command.c | 2 | ||||
-rw-r--r-- | common/uimage.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/command.c b/common/command.c index 873b3ff6f4..7f2b777939 100644 --- a/common/command.c +++ b/common/command.c @@ -85,7 +85,7 @@ int execute_command(int argc, char **argv) #else printf ("Unknown command '%s'\n", argv[0]); #endif - ret = -1; /* give up after bad command */ + ret = 1; /* give up after bad command */ } getopt_context_restore(&gc); 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); |