diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-09-20 07:31:43 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-09-20 07:31:43 +0000 |
commit | a3fa5d4a2a09156424aaf4cd2a8d2474099a3665 (patch) | |
tree | e727e7fdc99f95f095e4ac3008d4dedc9091206c /usr.sbin/pkg_add/pkg_delete | |
parent | 01db445bafbbd7d7d9e2e2f1efa75514f7f4332f (diff) |
use fullname() in sample, so that absolute names AND relative names work.
problem noticed by sturm@
Diffstat (limited to 'usr.sbin/pkg_add/pkg_delete')
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 9338f85ffcf..5e7961c08db 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.43 2004/09/18 09:27:05 espie Exp $ +# $OpenBSD: pkg_delete,v 1.44 2004/09/20 07:31:42 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -208,7 +208,7 @@ use OpenBSD::md5; sub delete { my ($self, $state) = @_; - my $name = $self->{name}; + my $name = $self->fullname(); my $realname = $state->{destdir}.$name; my $orig = $self->{copyfrom}; |