Subject: Re: mtree bug?
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: current-users
Date: 12/24/2004 16:24:05
s/mt\.test/spec/g

Jukka Salmi --> current-users (2004-12-24 16:21:59 +0100):
> Hello,
> 
> given the following mtree specification:
> 
> 	/set type=file mode=0644 nlink=1 flags=none
> 	. type=dir mode=0755 nlink=2
> 		file1
> 		file2
> 	..
> 
> in a file 'spec' and a matching filesystem tree in directory 'dir':
> 
> 	$ ls -al dir
> 	total 8
> 	drwxr-xr-x  2 jukka  jukka  512 Dec 24 16:12 ./
> 	drwx------  8 jukka  jukka  512 Dec 24 16:14 ../
> 	-rw-r--r--  1 jukka  jukka    0 Dec 24 15:52 file1
> 	-rw-r--r--  1 jukka  jukka    0 Dec 24 16:12 file2
> 
> running 'mtree -f spec -p dir -U' prints no output (as expected).
> Commenting out 'file1' in the specification and running the command
> again prints:
> 
> 	$ mtree -f mt.test -p dir -U 
> 	extra: file1
> 
> as expected. However, commenting out 'file2' as well, the command
> prints nothing:
> 
> 	$ mtree -f mt.test -p dir -U 
> 	$
> 
> Seems to be a bug, isn't it?
> 
> 
> Cheers, Jukka
> 
> -- 
> bashian roulette:
> $ ((RANDOM%6)) || rm -rf ~

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~