diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-04-22 20:46:22 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-04-22 20:46:22 +0000 |
commit | 3d72383bad3169dc463ca2508dec1c74774c18b6 (patch) | |
tree | a904e2af5f3fc02727aab43a7970158c3c9f414a /usr.sbin | |
parent | c0db973ef8c0323e0f3f82f5821739d98b921498 (diff) |
fix creating packages with long names in plist; from espie@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ArcCheck.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ArcCheck.pm b/usr.sbin/pkg_add/OpenBSD/ArcCheck.pm index 7086123a98d..7b2fe10013d 100644 --- a/usr.sbin/pkg_add/OpenBSD/ArcCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/ArcCheck.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: ArcCheck.pm,v 1.11 2009/04/19 14:58:32 espie Exp $ +# $OpenBSD: ArcCheck.pm,v 1.12 2009/04/22 20:46:21 naddy Exp $ # # Copyright (c) 2005-2006 Marc Espie <espie@openbsd.org> # @@ -125,7 +125,7 @@ sub prepare_long my ($prefix, $name) = split_name($entry->name); if (length($name) > MAXFILENAME || length($prefix) > MAXPREFIX) { $self->{name_index} = 0 if !defined $self->{name_index}; - $entry->name = 'LongName'.$self->{name_index}++; + $entry->set_name('LongName'.$self->{name_index}++); } if (length($entry->{linkname}) > MAXLINKNAME) { $self->{linkname_index} = 0 if !defined $self->{linkname_index}; |