diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-06-20 14:31:39 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-06-20 14:31:39 +0000 |
commit | b7c9717feae7b8a428cde7c24628882a3e1be637 (patch) | |
tree | 6f6c3d9e44823a17c8ca1c0300ad047ea57542f0 | |
parent | d29aa90b4e2aaba0d9631de0e7844c9a2998ba39 (diff) |
prepare to handle future extensions
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Mtree.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Mtree.pm b/usr.sbin/pkg_add/OpenBSD/Mtree.pm index 1b4607122e9..7fe29ebeb15 100644 --- a/usr.sbin/pkg_add/OpenBSD/Mtree.pm +++ b/usr.sbin/pkg_add/OpenBSD/Mtree.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Mtree.pm,v 1.4 2007/06/04 14:40:39 espie Exp $ +# $OpenBSD: Mtree.pm,v 1.5 2008/06/20 14:31:38 espie Exp $ # # Copyright (c) 2004-2005 Marc Espie <espie@openbsd.org> # @@ -36,6 +36,8 @@ sub parse_fh if ($_ eq '..') { $basedir =~ s|/[^/]*$||o; next; + } elsif (m/^\//) { + $basedir = $_; } else { $basedir.="/$_"; } |