Bug 170447 - [patch] mountd(8): correct handling of -n, -h and -p command line options
Summary: [patch] mountd(8): correct handling of -n, -h and -p command line options
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 13:40 UTC by Andrey Simonenko
Modified: 2013-09-23 14:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Simonenko 2012-08-07 13:40:06 UTC
Description of the following update:

1. For the -p option: use strtonum() instead of strtoul(), check the return
   value for the malloc() call.

2. Corrected memory leaks when the netconfig database is accessed, use two
   netconfig handles to see the same netconfig database data, check return
   values from setnetconfig() and endnetconfig().

3. For the -h option: simplify code.

4. For the -n option: use sysctl name depending on used NFS server
   implementation.

5. Use correct data type for the got_sighup variable and remove unnecessary
   assignment in get_line().

Fix: 

[ patch elided - gavin@ ]
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2013-09-23 14:22:09 UTC
State Changed
From-To: open->closed

PR closed at submitter's request