]> sourceware.org Git - lvm2.git/commit
dev: be safer when reading sysfs properties
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 21 Mar 2016 14:48:36 +0000 (15:48 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 21 Mar 2016 14:50:32 +0000 (15:50 +0100)
commit8fad9b9e5d219861fc1f758216fb446cffe3817f
treee05d9cb31bf959545ccf1c060d4827e06ba4bc04
parentca7bac53cf0b3b64bdfa375085fc1535589ab1eb
dev: be safer when reading sysfs properties

Check if the value we read from sysfs is not blank and replace the '\n'
at the end only when needed ('\n' should usually be there for sysfs values,
but better check this).
lib/device/dev-cache.c
This page took 0.031222 seconds and 5 git commands to generate.