diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2011-01-14 14:32:19 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2011-01-14 14:32:19 +0000 |
commit | fb9810dcb293582c0515aa7d5d42d6852c733ccc (patch) | |
tree | 114aed4ea69596f089397d373f612a83f7980855 /usr.sbin/pkg_add | |
parent | 8a21ccd8b559105890f7a5453ad77ef23ad5a091 (diff) |
Quick fix for cwd = /
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index b97cb2b411b..52823e27d57 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.191 2011/01/02 15:25:45 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.192 2011/01/14 14:32:18 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -201,6 +201,7 @@ sub fullname my $fullname = $self->name; if ($fullname !~ m|^/|o && $self->cwd ne '.') { $fullname = $self->cwd."/".$fullname; + $fullname =~ s,^//,/,; } return $fullname; } |