# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.137 2014/01/07 13:26:17 espie Exp $
+# $OpenBSD: Add.pm,v 1.138 2014/01/07 13:31:35 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
if (!defined $size) {
$size = (stat $cname)[7];
}
- if ($self->exec_on_add) {
- my $s2 = $state->vstat->stat($cname);
- if (defined $s2 && $s2->noexec) {
- $s2->report_noexec($state, $cname);
- }
- }
my $s = $state->vstat->add($fname, $self->{size}, $pkgname);
return unless defined $s;
if ($s->ro) {
$s->report_ro($state, $fname);
}
- if ($s->noexec && $self->exec_on_delete) {
- $s->report_noexec($state, $fname);
- }
if ($s->avail < 0) {
$s->report_overflow($state, $fname);
}
# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.124 2014/01/05 10:24:30 espie Exp $
+# $OpenBSD: Delete.pm,v 1.125 2014/01/07 13:31:36 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
if ($s->ro) {
$s->report_ro($state, $fname);
}
- if ($s->noexec && $self->exec_on_delete) {
- $s->report_noexec($state, $fname);
- }
}
sub copy_old_stuff
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.221 2014/01/07 13:26:18 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.222 2014/01/07 13:31:36 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
package OpenBSD::PackingElement::SpecialFile;
our @ISA=qw(OpenBSD::PackingElement::Unique);
-sub exec_on_add { 0 }
-sub exec_on_delete { 0 }
-
sub add_digest
{
&OpenBSD::PackingElement::FileBase::add_digest;