From 11ec71fe19b72a35612fa52cef5c25760e487d7d Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 19 Dec 2008 13:21:24 +0000 Subject: Check that the path given with set_dev() is writeable. Don't crash when writing to a read-only file, return False instead. Missing an INCREF in get_dev() fixed. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@124 abc39116-655e-4be6-ad55-d661dc543056 --- src/dmidecodemodule.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dmidecodemodule.h') diff --git a/src/dmidecodemodule.h b/src/dmidecodemodule.h index 02131c6..89eea87 100644 --- a/src/dmidecodemodule.h +++ b/src/dmidecodemodule.h @@ -3,6 +3,9 @@ #include #include #include + +#include +#include #include #include "version.h" -- cgit