2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00
repo/core/busybox/patches/unzip-usage-no-error.patch
2020-08-17 13:35:40 +03:00

21 lines
404 B
Diff

diff --git a/archival/unzip.c b/archival/unzip.c
index d94bbab..f424fb0 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -592,6 +592,7 @@ int unzip_main(int argc, char **argv)
break;
default:
+ xfunc_error_retval = 0;
bb_show_usage();
}
}
@@ -615,6 +616,7 @@ int unzip_main(int argc, char **argv)
#endif
if (!src_fn) {
+ xfunc_error_retval = 0;
bb_show_usage();
}