Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 11:16:28 -0700 (PDT)
From:      Archie Cobbs <archie@packetdesign.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/28424: mtree fails to report directory hierarchy mismatch
Message-ID:  <200106261816.f5QIGSr95549@bubba.packetdesign.com>

next in thread | raw e-mail | index | archive | help

>Number:         28424
>Category:       bin
>Synopsis:       mtree fails to report directory hierarchy mismatch
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 26 11:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Archie Cobbs
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Packet Design
>Environment:
System: FreeBSD freefall.freebsd.org 4.3-STABLE FreeBSD 4.3-STABLE #0: Sun Jun  3 03:04:36 PDT 2001     peter@freefall.freebsd.org:/c/src/sys/compile/FREEFALL  i386

>Description:

	mtree(1) is supposed to exit with a value of 2 if the
	hierarchy does not match the specification. However, in
	a certain situation it exits 0 when it should exit 2.

>How-To-Repeat:

	$ mkdir xx
	$ mkdir xx/yy
	$ mtree -dc -p xx -k uid,gid,mode > xx.mtree
	$ cat xx.mtree
	#          user: archie
	#       machine: freefall.freebsd.org
	#          tree: /d/home/archie/xx
	#          date: Tue Jun 26 11:12:16 2001
	# .
	/set type=dir uid=743 gid=743 mode=0755
	.              
	# ./yy
	yy             
	# ./yy
	..
	..
	$ rmdir xx/yy
	$ mtree -de -f xx.mtree -p xx && echo 'hierarchy matches spec'
	./yy missing
	hierarchy matches spec

>Fix:

	?

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106261816.f5QIGSr95549>