--- tar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tar.c b/tar.c index 603e544..759402e 100644 --- a/tar.c +++ b/tar.c _AT_@ -520,6 +520,12 @@ main(int argc, char *argv[]) char *file = NULL, *dir = ".", mode = '\0'; int fd; + if (argc >= 2 && argv[1][0] != '-') { + char *argv1 = emalloc(strlen(argv[1] + 2)); + sprintf(argv1, "-%s", argv[1]); + argv[1] = argv1; + } + ARGBEGIN { case 'x': case 'c': -- 2.24.1Received on Sat May 16 2020 - 02:24:23 CEST
This archive was generated by hypermail 2.3.0 : Sat May 16 2020 - 02:36:37 CEST