[BusyBox-cvs] busybox/archival tar.c,1.182,1.183
Glenn McGrath
bug1 at busybox.net
Thu Nov 20 09:53:36 UTC 2003
Update of /var/cvs/busybox/archival
In directory winder:/tmp/cvs-serv24517/archival
Modified Files:
tar.c
Log Message:
Check at least one context is specified
Index: tar.c
===================================================================
RCS file: /var/cvs/busybox/archival/tar.c,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- tar.c 20 Nov 2003 09:06:10 -0000 1.182
+++ tar.c 20 Nov 2003 09:53:31 -0000 1.183
@@ -662,6 +662,9 @@
if(opt & 0x80000000UL)
bb_show_usage();
ctx_flag = opt & (CTX_CREATE | CTX_TEST | CTX_EXTRACT);
+ if (ctx_flag == 0) {
+ bb_show_usage();
+ }
if(ctx_flag & CTX_TEST) {
if ((tar_handle->action_header == header_list) ||
(tar_handle->action_header == header_verbose_list)) {
More information about the busybox-cvs
mailing list