From owner-freebsd-hackers Fri May 12 16:44:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sign.chg.ru (sign.chg.ru [193.233.46.10]) by hub.freebsd.org (Postfix) with ESMTP id D49BD37B764 for ; Fri, 12 May 2000 16:44:34 -0700 (PDT) (envelope-from andrew@chg.ru) Received: from localhost (andrew@localhost) by sign.chg.ru (8.9.3/8.9.3) with ESMTP id DAA20921 for ; Sat, 13 May 2000 03:44:32 +0400 (MSD) (envelope-from andrew@chg.ru) X-Authentication-Warning: sign.chg.ru: andrew owned process doing -bs Date: Sat, 13 May 2000 03:44:31 +0400 (MSD) From: "Andrew L. Neporada" To: hackers@FreeBSD.ORG Subject: Strange behaviour of mtree(8)? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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