[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 0/2] i2c-tools fixes
From: Bartosz Golaszewski <bartekgola () gmail ! com>
Date: 2015-04-21 12:29:20
Message-ID: 1429619362-21873-1-git-send-email-bartekgola () gmail ! com
[Download RAW message or body]
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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic