uClibc getopt bug
Lei Sun
lei_sun at comcast.net
Tue Jan 3 23:19:23 UTC 2006
Hi:
I am running staticly linked busybox , compiled with uClibc.0.9.28, the code freezed when it call "getopt"
Part of the code looks like this:
getty_main(int argc, char ** argv)
int c;
while (isascii(c = getopt(argc, argv, "I:LH:f:hil:mt:wn"))) {
printf("c=%d\n", c);
switch (c) {
case 'I'
.....
}
}
I have verifyed the input arg is correct, The argv is :
/sbin/getty
-L
ttyS1
9600
-1
/bin/login
it only print out the "c=76" , which is the first arg -L, then it stopped.
I haven't looked into the getopt code yet, just in case someone had the same problem and there might be patch already available?
Thank you!
lei sun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20060103/7a4405b6/attachment.htm
More information about the uClibc
mailing list