Bug 50366

Summary: sk_disk_smart_read_data() returns ENOTSUP if run without root privileges
Product: libatasmart Reporter: Victor Mataré <matare>
Component: libraryAssignee: Lennart Poettering <lennart>
Status: NEW --- QA Contact: Lennart Poettering <lennart>
Severity: minor    
Priority: medium CC: zeuthen
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.