Package: dstat / 0.7.4-6

fix_629680 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Use the correct path to the squidclient binary for Debian
 Upstream has been consulted as to their preferred solution to this problem,
 but has been unresponsive
Author: Andrew Pollock <apollock@debian.org>
Bug-Debian: http://bugs.debian.org/629680

diff --git a/plugins/dstat_squid.py b/plugins/dstat_squid.py
index c864cf5..c955b04 100644
--- a/plugins/dstat_squid.py
+++ b/plugins/dstat_squid.py
@@ -30,14 +30,14 @@ class dstat_plugin(dstat):
             'objsz')
 
     def check(self):
-        if not os.access('/usr/sbin/squidclient', os.X_OK):
+        if not os.access('/usr/bin/squidclient', os.X_OK):
             raise Exception('Needs squidclient binary')
-        cmd_test('/usr/sbin/squidclient %s mgr:info' % squidclient_options)
+        cmd_test('/usr/bin/squidclient %s mgr:info' % squidclient_options)
         return True
  
     def extract(self):
         try:
-            for l in cmd_splitlines('/usr/sbin/squidclient %s mgr:info' % squidclient_options, ':'):
+            for l in cmd_splitlines('/usr/bin/squidclient %s mgr:info' % squidclient_options, ':'):
                 if l[0].strip() in self.vars:
                     self.val[l[0].strip()] = l[1].strip()
                     break