Bug 50366 - sk_disk_smart_read_data() returns ENOTSUP if run without root privileges
Summary: sk_disk_smart_read_data() returns ENOTSUP if run without root privileges
Status: NEW
Alias: None
Product: libatasmart
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: Other All
: medium minor
Assignee: Lennart Poettering
QA Contact: Lennart Poettering
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 17:23 UTC by Victor Mataré
Modified: 2012-05-25 17:23 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Victor Mataré 2012-05-25 17:23:24 UTC
sk_disk_smart_read_data() returns ENOTSUP if run without root privileges. That just cost me more than an hour of debugging entirely in the wrong direction, since actually this is a permission problem, i.e. it should have returned EPERM. Doesn't look like this a trivial fix, but clean semantics are always a nice thing to have ;-)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.