fix disk_protect for linux-2.6.27
authorPhil Sutter <phil@nwl.cc>
Sun, 14 Dec 2008 01:51:50 +0000 (02:51 +0100)
committerPhil Sutter <phil@nwl.cc>
Sun, 14 Dec 2008 01:51:50 +0000 (02:51 +0100)
commit5445c8890aaa7168040ab7fa27c6535c43cd523d
tree5efa620902f4ed20ac534a7e150e2d05b023b505
parent7a6ce89226586e19195bc7236bc888bd77992394
fix disk_protect for linux-2.6.27

The path for the sysfs attribute has changed. Also negative values show
disabled disk protect, so catch this when interpreting the file's
content.
ChangeLog
src/linux.c