Summary: | [libc] [patch] (mis)feature in getnetent parsing -- comments affect parsing results | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | James Carlson <james.d.carlson> | ||||
Component: | kern | Assignee: | Marcelo Araujo <araujo> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | araujo, hrs, pfg | ||||
Priority: | Normal | ||||||
Version: | 4.1-RELEASE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
James Carlson
2001-11-14 15:40:03 UTC
This appears to have been fixed somewhat differently by r145477: "if last line didn't have trailing space, network address was also treated as an alias." I am closing it but will assign it to the revision committer for reference. Created attachment 153285 [details]
Updated patch
Actually, this should work ... but it needs testing.
I will take it. I have tested it, and I can't find where is the bug, my tests were made with/without the patch and using the software provided by the submitter, I still can't find where is the bug. The output is always the same for me, and it looks right: araujo@coxinha:/tmp# ./t test1 getnetbyname: 10 0 0 0 'test1' inet_network: 255 255 255 255 araujo@coxinha:/tmp# ./t test2 getnetbyname: 11 0 0 0 'test2' aliases: 'alias2' inet_network: 255 255 255 255 araujo@coxinha:/tmp# ./t test3 getnetbyname: 12 0 0 0 'test3' inet_network: 255 255 255 255 If no reply from you guys in the next couple weeks, I will consider this problem as solved. Best, I can't replicate this issue. |