projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make insmod quiet by default (patch from Yann E. Morin).
[oweals/busybox.git]
/
archival
/
ar.c
diff --git
a/archival/ar.c
b/archival/ar.c
index de5bc9b845f4adcc8a29967ee8911e1248875539..983b5ae2cd8ef965fdb5af7f27737b369b0a3043 100644
(file)
--- a/
archival/ar.c
+++ b/
archival/ar.c
@@
-68,16
+68,9
@@
extern int ar_main(int argc, char **argv)
archive_handle = init_handle();
/* Prepend '-' to the first argument if required */
archive_handle = init_handle();
/* Prepend '-' to the first argument if required */
- if (argv[1][0] != '-')
- argv[1] = bb_xasprintf("-%s", argv[1]);
-
- bb_opt_complementally = "?p~tx:t~px:x~pt";
+ bb_opt_complementally = "--:p:t:x:-1:?:p--tx:t--px:x--pt";
opt = bb_getopt_ulflags(argc, argv, "ptxovcr");
opt = bb_getopt_ulflags(argc, argv, "ptxovcr");
- if ((opt == 0) || (optind == argc)) {
- bb_show_usage();
- }
-
if (opt & AR_CTX_PRINT) {
archive_handle->action_data = data_extract_to_stdout;
}
if (opt & AR_CTX_PRINT) {
archive_handle->action_data = data_extract_to_stdout;
}