Let tar accept 'tar -cvf' (with -).

This commit is contained in:
Ben Gras 2005-08-28 22:19:51 +00:00
parent 90fecead0d
commit ed5fa1767a

View file

@ -241,6 +241,8 @@ register char *argv[];
if (argc < 3) error(usage, NIL_PTR);
for (ptr = argv[1]; *ptr; ptr++) {
/* Ignore - as first char */
if(*ptr == '-' && ptr == argv[1]) continue;
switch (*ptr) {
case 'c': creat_fl = TRUE; break;
case 'x': ext_fl = TRUE; break;