| Summary: | limits -d etc. should not output warning | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Slaven Rezic <eserte> | ||||
| Component: | bin | Assignee: | Joseph Koshy <jkoshy> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.3-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Slaven Rezic
2001-08-11 15:10:01 UTC
Responsible Changed From-To: freebsd-bugs->jkoshy I'll take care of this. The problem turns out to be in our implementation of `getopt(3)' and not in /usr/bin/limits. If 'optstring' passed to getopt() starts with a leading ':', then getopt() should not print a warning for missing arguments. The attached patch fixes this. Could someone on -audit please review? Regards, Koshy <jkoshy@freebsd.org> On 14-Aug-2001 Joseph Koshy wrote: | | The problem turns out to be in our implementation of `getopt(3)' | and not in /usr/bin/limits. | | If 'optstring' passed to getopt() starts with a leading ':', then getopt() | should not print a warning for missing arguments. The attached patch fixes | this. | | Could someone on -audit please review? Looks good. Is this to be an MFC candidate? Mike -- Mike Heffner <mheffner@[acm.]vt.edu> Fredericksburg, VA <mikeh@FreeBSD.org> State Changed From-To: open->closed Fixed in rev 1.4 of "src/lib/libc/stdlib/getopt.c". |