From owner-freebsd-bugs Mon Jun 4 14:40:18 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BB97337B406 for ; Mon, 4 Jun 2001 14:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f54Le3u15456; Mon, 4 Jun 2001 14:40:03 -0700 (PDT) (envelope-from gnats) Received: from bofh.internal.moreton.com.au (ppp4.adsl238.pacific.net.au [203.143.238.4]) by hub.freebsd.org (Postfix) with ESMTP id 2BDC437B401 for ; Mon, 4 Jun 2001 14:32:16 -0700 (PDT) (envelope-from pdh@moreton.com.au) Received: (from pdh@localhost) by bofh.internal.moreton.com.au (8.11.3/8.11.3) id f54LWCx25243; Tue, 5 Jun 2001 07:32:12 +1000 (EST) (envelope-from pdh) Message-Id: <200106042132.f54LWCx25243@bofh.internal.moreton.com.au> Date: Tue, 5 Jun 2001 07:32:12 +1000 (EST) From: Phil Homewood Reply-To: pdh@moreton.com.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/27878: [PATCH] mountd has incorrect usage output Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27878 >Category: bin >Synopsis: [PATCH] mountd has incorrect usage output >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 04 14:40:03 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Phil Homewood >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD bofh.internal.moreton.com.au 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu May 24 09:36:06 EST 2001 root@bofh.internal.moreton.com.au:/usr/obj/usr/src/sys/BOFH i386 >Description: mountd gives incorrect usage instructions when given a bad exports file >How-To-Repeat: tail -f /var/log/messages & echo "/foo 192.168.0.0 -mask 255.255.255.0" > /etc/exports" killall -HUP mountd echo "/foo -net 192.168.0.0 -mask 255.255.255.0" > /etc/exports" killall -HUP mountd >Fix: --- mountd.c.orig Fri Jun 1 19:32:10 2001 +++ mountd.c Tue Jun 5 07:26:39 2001 @@ -2089,7 +2089,7 @@ return (1); } if ((opt_flags & OP_MASK) && (opt_flags & OP_NET) == 0) { - syslog(LOG_ERR, "-mask requires -net"); + syslog(LOG_ERR, "-mask requires -network"); return (1); } if ((opt_flags & OP_ALLDIRS) && dp->dp_left) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message