Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/veriexecgen Omit files not marked executable from t...



details:   https://anonhg.NetBSD.org/src/rev/08c21acdb2c9
branches:  trunk
changeset: 998604:08c21acdb2c9
user:      sevan <sevan%NetBSD.org@localhost>
date:      Tue Apr 23 22:35:42 2019 +0000

description:
Omit files not marked executable from the signature database by default.

Closes PR kern/41669
Reviewed by <agc>

diffstat:

 usr.sbin/veriexecgen/veriexecgen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b2a46b8c9d7b -r 08c21acdb2c9 usr.sbin/veriexecgen/veriexecgen.c
--- a/usr.sbin/veriexecgen/veriexecgen.c        Tue Apr 23 22:22:22 2019 +0000
+++ b/usr.sbin/veriexecgen/veriexecgen.c        Tue Apr 23 22:35:42 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: veriexecgen.c,v 1.18 2017/09/09 21:27:23 sevan Exp $ */
+/* $NetBSD: veriexecgen.c,v 1.19 2019/04/23 22:35:42 sevan Exp $ */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 
 #ifndef lint
 #ifdef __RCSID
-__RCSID("$NetBSD: veriexecgen.c,v 1.18 2017/09/09 21:27:23 sevan Exp $");
+__RCSID("$NetBSD: veriexecgen.c,v 1.19 2019/04/23 22:35:42 sevan Exp $");
 #endif
 #endif /* not lint */
 
@@ -208,7 +208,7 @@
        } else
                sb = *file->fts_statp;
 
-       if (!vp->all_files && !vp->scan_system_dirs && !IS_EXEC(sb.st_mode))
+       if (!vp->all_files && !IS_EXEC(sb.st_mode))
                return;
 
        e = ecalloc(1UL, sizeof(*e));



Home | Main Index | Thread Index | Old Index