7ca5c51cc8
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 trying open("/dev/i2c/%d") only if we got ENOENT. Upstream i2cdetect tries to get any info it can from /sys and /proc even when invoked by an unprivileged user, but we don't want to add unnecessary bloat. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
adjtimex.c | ||
bbconfig.c | ||
beep.c | ||
chat.c | ||
chrt.c | ||
Config.src | ||
conspy.c | ||
crond.c | ||
crontab.c | ||
dc.c | ||
devfsd.c | ||
devmem.c | ||
eject.c | ||
fbsplash.c | ||
fbsplash.cfg | ||
flash_eraseall.c | ||
flash_lock_unlock.c | ||
flashcp.c | ||
hdparm.c | ||
i2c_tools.c | ||
inotifyd.c | ||
ionice.c | ||
Kbuild.src | ||
last_fancy.c | ||
last.c | ||
less.c | ||
makedevs.c | ||
man.c | ||
microcom.c | ||
mountpoint.c | ||
mt.c | ||
nandwrite.c | ||
raidautorun.c | ||
readahead.c | ||
rfkill.c | ||
runlevel.c | ||
rx.c | ||
setserial.c | ||
setsid.c | ||
strings.c | ||
taskset.c | ||
time.c | ||
timeout.c | ||
ttysize.c | ||
ubi_tools.c | ||
volname.c | ||
wall.c | ||
watchdog.c |