summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-10-22 18:35:12 +0000
committerschwarze <schwarze@openbsd.org>2016-10-22 18:35:12 +0000
commit8e6fa7367df578e60e99ec4141d489e5abe3f186 (patch)
tree11f2db1b52f5b03d9f5b73b7b5eb9f8d23845191
parentRemove huge amounts of debug code, that make the code nearly unreadable. (diff)
downloadwireguard-openbsd-8e6fa7367df578e60e99ec4141d489e5abe3f186.tar.xz
wireguard-openbsd-8e6fa7367df578e60e99ec4141d489e5abe3f186.zip
When checking ownership and modes of files in /var/mail/,
ignore *.lock files, to avoid pointless warning mails reported by Philippe Meunier <meunier at ccs dot neu dot edu>; OK florian@ jca@
-rw-r--r--libexec/security/security3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/security/security b/libexec/security/security
index 2b35d17b3bd..39f0b6e6c20 100644
--- a/libexec/security/security
+++ b/libexec/security/security
@@ -1,6 +1,6 @@
#!/usr/bin/perl -T
-# $OpenBSD: security,v 1.36 2015/07/21 19:07:13 schwarze Exp $
+# $OpenBSD: security,v 1.37 2016/10/22 18:35:12 schwarze Exp $
#
# Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
# Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com>
@@ -455,6 +455,7 @@ sub check_mailboxes {
nag !(opendir my $dh, $dir), "opendir: $dir: $!" and return;
foreach my $name (readdir $dh) {
next if $name =~ /^\.\.?$/;
+ next if $name =~ /.\.lock$/;
my ($mode, $fuid, $fgid) = (stat "$dir/$name")[2,4,5];
unless (defined $mode) {
nag !$!{ENOENT}, "stat: $dir/$name: $!";