gentoo-full-overlay/sys-apps/dstat/files/dstat-0.6.9-CVE-2009-3894.patch

15 lines
721 B
Diff

https://bugs.gentoo.org/show_bug.cgi?id=293497
Index: dstat-0.6.9/dstat
===================================================================
--- dstat-0.6.9.orig/dstat
+++ dstat-0.6.9/dstat
@@ -28,8 +28,6 @@ try:
inspath('/usr/local/share/dstat/')
inspath('/usr/share/dstat/')
inspath(os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/') # binary path + /plugins/
- inspath(os.getcwd() + '/plugins/') # current path + /plugins/
- inspath(os.getcwd()) # current path
inspath(os.path.expanduser('~/.dstat/')) # home + /.dstat/
except KeyboardInterrupt, e:
pass