[PATCH 0/2] i2c-tools fixes
Bartosz Golaszewski
bartekgola at gmail.com
Tue Apr 21 12:29:20 UTC 2015
I've stumbled upon this bug, where calling i2cdetect -l prints usage and
exits. The culprit is the opt_complementary string which causes getopt32()
to bail-out if no non-option arguments are encountered.
I think the check for (argc < 1) in i2cdetect_main() got removed from
my original submission. The first patch restores it.
The second patch proposes to modify the behaviour of i2c_dev_open().
Bartosz Golaszewski (2):
i2c-tools: fix 'i2cdetect -l'
i2c-tools: only try /dev/i2c/* if opening /dev/i2c-* fails with ENOENT
miscutils/i2c_tools.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
--
2.1.4
More information about the busybox
mailing list