Fix tarball creation. In an attempt to accomodate the whiners
that wanted "tar cf foo.tar foo" (i.e. no "-" before options) I broke creation of tarballs. Now fixed. -Erik
This commit is contained in:
parent
6ed02a0ee0
commit
923ef599f3
@ -183,7 +183,7 @@ extern int tar_main(int argc, char **argv)
|
||||
usage(tar_usage);
|
||||
|
||||
/* Parse any options */
|
||||
while (--argc > 0 && (**(++argv) != '\0')) {
|
||||
while (--argc > 0 && **(++argv) == '-') {
|
||||
stopIt=FALSE;
|
||||
while (stopIt==FALSE && *(++(*argv))) {
|
||||
switch (**argv) {
|
||||
|
Loading…
Reference in New Issue
Block a user