Fix command line parsing; from GNU CVS.

This commit is contained in:
naddy 2005-01-30 14:56:57 +00:00
parent 94cb226cab
commit 5400bfd4d1
2 changed files with 17 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.33 2005/01/01 23:47:43 naddy Exp $
# $OpenBSD: Makefile,v 1.34 2005/01/30 14:56:57 naddy Exp $
COMMENT= "GNU version of the traditional tar archiver"
DISTNAME= tar-1.15.1
PKGNAME= g${DISTNAME}
PKGNAME= g${DISTNAME}p0
CATEGORIES= archivers
HOMEPAGE= http://www.gnu.org/software/tar/

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_tar_c,v 1.1 2005/01/30 14:56:57 naddy Exp $
--- src/tar.c.orig Tue Dec 21 15:11:26 2004
+++ src/tar.c Sun Jan 30 15:22:05 2005
@@ -617,9 +617,9 @@ parse_opt(int key, char *arg, struct arg
switch (key)
{
- case 1:
+ case ARGP_KEY_ARG:
/* File name or non-parsed option, because of ARGP_IN_ORDER */
- name_add (optarg);
+ name_add (arg);
args->input_files++;
break;