From owner-freebsd-hackers Thu Aug 2 16:39: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vulcans.dynamic.spock.org (pcd231215.netvigator.com [203.198.243.215]) by hub.freebsd.org (Postfix) with ESMTP id A4F8B37B401 for ; Thu, 2 Aug 2001 16:39:04 -0700 (PDT) (envelope-from jon@vulcans.dynamic.spock.org) Received: (from jon@localhost) by vulcans.dynamic.spock.org (8.11.4/8.11.4) id f72Ncu017920 for hackers@freebsd.org; Thu, 2 Aug 2001 19:38:56 -0400 (EDT) (envelope-from jon) Date: Thu, 2 Aug 2001 19:38:55 -0400 From: Jonathan Chen To: hackers@freebsd.org Subject: mtree exit code [pr:28424] Message-ID: <20010802193855.A17850@vulcans.dynamic.spock.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: telnet/1.1x Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Been trying to close some PR's, but I'm not so sure about this one. According to the man page, mtree is supposed to return an exit code of 2 when "the file hierarchy did not match the specification". However, mtree does not return an exit code of 2 when a file/directory is missing. OpenBSD exhibits the same behavior. My question -- is the man page or the program wrong? Is there some standard (POSIX perhaps?) that specifies how mtree should behave? And if its behavior us indeed changed, would anything break? -Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message