]> granicus.if.org Git - sysstat/commitdiff
avoiding triggering automounts, bug #1670060
authorOndrej Dubaj <odubaj@redhat.com>
Tue, 26 Feb 2019 07:36:14 +0000 (08:36 +0100)
committerOndrej Dubaj <odubaj@redhat.com>
Tue, 26 Feb 2019 07:36:14 +0000 (08:36 +0100)
sadc.c

diff --git a/sadc.c b/sadc.c
index 4d62e37f550e88d7f9a0feeb2974f5920af50a79..a72c769d522413843c6431ab9070939477067303 100644 (file)
--- a/sadc.c
+++ b/sadc.c
@@ -318,6 +318,9 @@ void sa_sys_init(void)
 
        for (i = 0; i < NR_ACT; i++) {
 
+               if ( ! (act[i]->options & AO_COLLECTED ) )
+                       continue;
+
                if (HAS_COUNT_FUNCTION(act[i]->options)) {
                        idx = act[i]->f_count_index;