diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-05-07 15:55:37 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-05-07 15:55:37 +0000 |
commit | 139009895ce9e75d632b91c49c78ed988cc9c2a1 (patch) | |
tree | 2c38aee982012a0b2e4db02acb544d50b4a06700 /usr.sbin | |
parent | 10359b10f4fffb4e641d163516019f38262defe8 (diff) |
in the odd case we don't live under /usr/local, make sure we stop eventually
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/OldLibs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/OldLibs.pm b/usr.sbin/pkg_add/OpenBSD/OldLibs.pm index 72a8ed9c4a3..b83b81c820f 100644 --- a/usr.sbin/pkg_add/OpenBSD/OldLibs.pm +++ b/usr.sbin/pkg_add/OpenBSD/OldLibs.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: OldLibs.pm,v 1.10 2012/05/05 10:21:47 espie Exp $ +# $OpenBSD: OldLibs.pm,v 1.11 2012/05/07 15:55:36 espie Exp $ # # Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org> # @@ -124,7 +124,7 @@ sub enforce_dir my $d = dirname($path); my $localbase = $copy->localbase; - if ($d eq "$localbase/lib" || $d eq $localbase) { + if ($d eq "$localbase/lib" || $d eq $localbase || $d eq '/') { return; } if ($dirs->{$d}) { |