From ed5fa1767adfd57223d088de80a09d59d74d7d21 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 28 Aug 2005 22:19:51 +0000 Subject: [PATCH] Let tar accept 'tar -cvf' (with -). --- commands/simple/tar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/simple/tar.c b/commands/simple/tar.c index 21894012d..53c68042b 100755 --- a/commands/simple/tar.c +++ b/commands/simple/tar.c @@ -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; -- 2.44.0