Am Sonntag, 25. Januar 2004 06:08 schrieb Brad Fritz: > Bering-uClibc 2.1, and possibly several other LEAF variants, have > a bug in POSIXness.mail triggered when the "-v" option to the mail > command is used. Here's an example of the bug in action: > > firewall# mail -v -s "This is a test" [EMAIL PROTECTED] < /dev/null > [..] > 4: 250 RCPT TO:<[EMAIL PROTECTED]> > 5: 354 DATA > 6: 354 Date: Sun, 25 Jan 2004 04:50:54 +0000 > 6: 354 From: [EMAIL PROTECTED] > 6: 354 Subject: > 6: 354 To: This is a test [EMAIL PROTECTED] > 6: 354 X-Mailer: POSIXness Mail > [..] > > Notice that the "Subject" header line is blank and the subject has > been prepended to the "To" header line. The problem is the "v" in > getopts optstring should not be followed by a colon since "-v" does > not take an argument. The bug is only triggered when "-v" is used. > The trivial patch attached fixes the problem for me. > Brad
thx, will be in next release of Bering-uClibc. kp ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel