Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2000 03:44:31 +0400 (MSD)
From:      "Andrew L. Neporada" <andrew@chg.ru>
To:        hackers@FreeBSD.ORG
Subject:   Strange behaviour of mtree(8)?
Message-ID:  <Pine.BSF.4.21.0005130338300.20907-100000@sign.chg.ru>

next in thread | raw e-mail | index | archive | help
[posted to -questions several days ago, but still no response]

It always seems to me that `mtree -c | mtree` should output nothing
(because it compares current directory with itself). But recently I
noticed very strange thing:
andrew@sign> ls -la
total 4
drwxr-xr-x   2 andrew  wheel   512  4 May 19:48 .
drwxr-xr-x  46 andrew  wheel  2560  4 May 19:47 ..
lrwxr-xr-x   1 andrew  wheel     1  4 May 19:47 a -> .
lrwxr-xr-x   1 andrew  wheel     1  4 May 19:48 b -> .
andrew@sign> mtree -c | mtree
extra: b
missing: ./a/b
andrew@sign> mtree -c | mtree -U
extra: b
missing: ./a/b (directory not created: File exists)

In another similar sitation:

andrew@sign> ls -lR
total 2
drwxr-xr-x  2 andrew  wheel  512  4 May 20:02 1
drwxr-xr-x  2 andrew  wheel  512  4 May 20:03 2

./1:
total 0
lrwxr-xr-x  1 andrew  wheel  1  4 May 20:02 a -> .
lrwxr-xr-x  1 andrew  wheel  1  4 May 20:02 b -> .

./2:
total 0
lrwxr-xr-x  1 andrew  wheel  1  4 May 20:03 a -> .
lrwxr-xr-x  1 andrew  wheel  1  4 May 20:03 b -> .
andrew@sign> mtree -c | mtree
extra: 1/b
extra: 2
missing: ./1/a/b
missing: ./1/a/2
missing: ./1/a/2/a
missing: ./1/a/2/a/b
andrew@sign> mtree -c | mtree -U
extra: 1/b
extra: 2
missing: ./1/a/b (directory not created: File exists)
missing: ./1/a/2 (created)
missing: ./1/a/2/a (created)
missing: ./1/a/2/a/b (created)
andrew@sign> 

Guys! What happens? I'll greatly appreciate any input from you!


			-- Andrew.



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005130338300.20907-100000>