From simon@comsys.ntu-kpi.kiev.ua  Tue Aug  7 12:38:29 2012
Return-Path: <simon@comsys.ntu-kpi.kiev.ua>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8C45F106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Aug 2012 12:38:29 +0000 (UTC)
	(envelope-from simon@comsys.ntu-kpi.kiev.ua)
Received: from comsys.kpi.ua (comsys.kpi.ua [77.47.192.42])
	by mx1.freebsd.org (Postfix) with ESMTP id DCC208FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Aug 2012 12:38:28 +0000 (UTC)
Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua)
	by comsys.kpi.ua with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.63)
	(envelope-from <simon@comsys.ntu-kpi.kiev.ua>)
	id 1Syj3L-00021g-L9
	for FreeBSD-gnats-submit@freebsd.org; Tue, 07 Aug 2012 15:38:27 +0300
Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001)
	id EC8421CC21; Tue,  7 Aug 2012 15:38:27 +0300 (EEST)
Message-Id: <20120807123827.GA17198@pm513-1.comsys.ntu-kpi.kiev.ua>
Date: Tue, 7 Aug 2012 15:38:27 +0300
From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Subject: mountd: correct handling of -n, -h and -p command line options

>Number:         170447
>Category:       bin
>Synopsis:       [patch] mountd(8): correct handling of -n, -h and -p command line options
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 12:40:06 UTC 2012
>Closed-Date:    Mon Sep 23 13:23:16 UTC 2013
>Last-Modified:  Mon Sep 23 13:23:16 UTC 2013
>Originator:     Andrey Simonenko
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:

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().

>How-To-Repeat:
>Fix:
 [ patch elided - gavin@ ]
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Sep 23 13:22:09 UTC 2013 
State-Changed-Why:  
PR closed at submitter's request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170447 
>Unformatted:
