From owner-freebsd-bugs@FreeBSD.ORG Fri May 10 06:10:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BDC24E4A for ; Fri, 10 May 2013 06:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2BBF57 for ; Fri, 10 May 2013 06:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4A6A0cj043649 for ; Fri, 10 May 2013 06:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4A6A06C043648; Fri, 10 May 2013 06:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 10 May 2013 06:10:00 GMT Resent-Message-Id: <201305100610.r4A6A06C043648@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sven-Thorsten Dietrich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7619EDAE for ; Fri, 10 May 2013 06:09:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 69C55F46 for ; Fri, 10 May 2013 06:09:39 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4A69cpA092423 for ; Fri, 10 May 2013 06:09:38 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4A69cwx092392; Fri, 10 May 2013 06:09:38 GMT (envelope-from nobody) Message-Id: <201305100609.r4A69cwx092392@oldred.FreeBSD.org> Date: Fri, 10 May 2013 06:09:38 GMT From: Sven-Thorsten Dietrich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/178472: make return code consistent with IPv4 code X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 06:10:00 -0000 >Number: 178472 >Category: kern >Synopsis: make return code consistent with IPv4 code >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: Fri May 10 06:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sven-Thorsten Dietrich >Release: head >Organization: Vyatta >Environment: N/A >Description: IPv4 code returns EPERM if mrouter not initialized. Make IPv6 do the same. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: sys/netinet6/ip6_mroute.c =================================================================== --- sys/netinet6/ip6_mroute.c (revision 250431) +++ sys/netinet6/ip6_mroute.c (working copy) @@ -348,7 +348,7 @@ mifi_t mifi; if (so != V_ip6_mrouter && sopt->sopt_name != MRT6_INIT) - return (EACCES); + return (EPERM); switch (sopt->sopt_name) { case MRT6_INIT: >Release-Note: >Audit-Trail: >Unformatted: