Re: [PATCH 2/2] i2c-tools: only try /dev/i2c/* if opening /dev/i2c-* fails with ENOENT

2015-05-11 Thread Denys Vlasenko
Applied, thanks! On Tue, Apr 21, 2015 at 2:29 PM, Bartosz Golaszewski bartekg...@gmail.com wrote: Trying to access /dev/i2c/* on every error after opening /dev/i2c-* can mislead users who e.g. don't have root access. Instead of bailing-out with permission denied we currently print no such file

[PATCH 2/2] i2c-tools: only try /dev/i2c/* if opening /dev/i2c-* fails with ENOENT

2015-04-21 Thread Bartosz Golaszewski
Trying to access /dev/i2c/* on every error after opening /dev/i2c-* can mislead users who e.g. don't have root access. Instead of bailing-out with permission denied we currently print no such file or directory. Fix it by checking for ENOENT if the first call to open() fails. Upstream i2cdetect