summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2006-10-18 16:40:41 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2006-10-18 16:40:41 +0000
commitbdbddc96428ec97d5aa437abc50b262f62fbfd33 (patch)
tree565cd450c0292addf1a208a2e2a2b8f16431242c /usr.sbin/pkg_add/OpenBSD
parent5702cdf11e0bec40040dfadccc3c52c9bae9e386 (diff)
symlinks marked @extra need special care for deletion
ok bernd, espie
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm
index bc0457e3ebe..61b778a07c9 100644
--- a/usr.sbin/pkg_add/OpenBSD/Delete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.32 2005/10/27 07:02:02 bernd Exp $
+# $OpenBSD: Delete.pm,v 1.33 2006/10/18 16:40:40 sturm Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -546,7 +546,7 @@ sub delete
print "deleting extra file: $realname\n";
}
return if $state->{not};
- return unless -e $realname;
+ return unless -e $realname or -l $realname;
if ($state->{replacing}) {
$state->print("Remember to update $realname\n");
$self->mark_dir($state);