| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Signed-off-by: David Sommerseth <davids@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
Python 3 uses the Unicode type for strings but it did only support the
Bytes type. So the loading of XML-to-Python-dict-map would fail.
This patch preserves the Bytes type support while adding Unicode support,
which is what is done other places in the code as well.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
| |
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks to Daniel Mueller for spotting this typo.
Unfortunately this fix may break some code if it depends on the
"Relase Date" key name. The alternative would be to provide
both the old and wrong key name together with the new one, but
this particular key was not considered critically enough for special
treatment.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
| |
This includes a rebase against upstream dmidecode v2.12 and an update
against the SMBIOS reference specification v2.8.0.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
| |
This includes an update against the SMBIOS reference specification v2.7.0
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
| |
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
| |
This missing break could cause duplicated 'installed' attributes in
<InstalledSize/> or <EnabledSize/> XML tags. This is only happening
when dmi_memory_module_size() is called and only on some hardware.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
| |
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
The dmispec attribute is added outside the switch() call, and must not be
duplicated. If this happens, an invalid XML file will be generated.
(Un)fortunately, libxml2 is quite forgiving to this error. But xmllint
will complain about it and other XML libraries (such as python-lxml)
may reject such XML data.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
| |
This patch fixes more potential issues where dmi_string() results
was not necessarily checked for NULL, which potentially could lead
to SEGV issues.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
| |
This modifies the core DMI decoding to make use of the new
dmixml_AddDMIstring() function instead of the older, more error prone
approach of dmi_string() and dmixml_AddTextChild().
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This function can be used instead of dmi_string() and
dmixml_AddTextChild(). In those cases where dmi_string() returns
NULL, this situation is handled more gracefully. In addition of
also handling "not specified" situations better as well.
Signed-off-by: David Sommerseth <davids@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
On some s390x systems under heavy memory load seems to trigger
a SIGILL event when calling memcpy(). To avoid this issue, which
basically leads to the complete script to core dump, a signal
handler was implemented to add tackle such siutations more gracefully.
The SIGILL event should now be logged as well, to be able to see
that this happened.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
| |
|
|
|
|
|
| |
The dmi_processor_id() function did not check the char *version pointer if it
was NULL before doing strcmp(). On some hardware, *version will be NULL.
|
|
|
|
| |
Also, switch to dpkg-source 3.0 (quilt) format.
|
|
|
|
|
|
|
|
|
|
|
| |
This bug was reported by Jan HutaĆ <jhutar@redhat.com> [1]
The implemented fix avoids assertions if the format strings to
dmixml_AddAttribute(), dmixml_AddTextChild() and dmixml_AddTextContent()
functions are NULL. In these cases, it will result in an empty value
instead of returning NULL from these functions.
[1] <https://bugzilla.redhat.com/show_bug.cgi?id=583867>
|
| |
|
| |
|
| |
|
|
|
|
| |
Plus some minor code style clean up
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Valid flags are:
* LOGFL_NORMAL
Log all messages to the log context, and send log message to stderr
on errors
* LOGFL_NODUPS
Log only unique messages. Duplicated messages will be removed
* LOGFL_NOSTDERR
Don't write to stderr, even if errors occur
|
| |
|
| |
|
|
|
|
|
|
| |
This port will not create a new log buffer (Log_t), but log_append()
will print errors to stderr in this case, as the log buffer pointer
is NULL.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(Despite dazo automating the process with a script, it was obviously still
too difficult).
|
|
|
|
|
|
|
|
| |
Both setup.py and setup-dbg.py install the same file, namely:
/usr/share/pyshared/dmidecode.py
This generated Bug#561904. This commit closes this bug.
|
|
|
|
|
|
|
|
|
| |
This function would often fail during the unit test. Most probably because the
complete error checking was a bit odd. Rewritten the error checks to be a bit
more sane.
Also improved error situations, where it will now throw an exception with an
error message instead of just returning False.
|
| |
|
|
|
|
| |
Thanks Lintian! You're a champ!
|
| |
|
| |
|
|
|
|
|
| |
The libxml2 path is now handled by `setup_common.py', so the actual
setup files are clean from any OS-specific (Debian/RedHat) hacks.
|
| |
|
| |
|
| |
|
| |
|
| |
|