From: Ben Gras Date: Sun, 28 Aug 2005 22:19:51 +0000 (+0000) Subject: Let tar accept 'tar -cvf' (with -). X-Git-Tag: v3.1.0~256 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/spin.js?a=commitdiff_plain;h=ed5fa1767adfd57223d088de80a09d59d74d7d21;p=minix.git Let tar accept 'tar -cvf' (with -). --- 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;