[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff -r with symlink to dir
From: |
Gilles Lamiral |
Subject: |
diff -r with symlink to dir |
Date: |
Wed, 23 May 2001 03:43:37 +0200 |
Bonjour,
An old bug I still have with a recent upgrade.
All debian distributions have that sort of self link ("link -> .")
diff should not go (and break) in an endless loop, at least
with a --notfollowsymlink option, no?
Now an example:
mkdir -p /tmp/diffbug/foo
cd /tmp/diffbug/foo
ln -s . selflink
cp -a . ../foo2
cd ..
find . -ls
162367 4 ... 4096 May 23 03:30 .
162368 4 ... 4096 May 23 03:30 ./foo
164507 1 ... 1 May 23 03:30 ./foo/selflink -> .
131570 4 ... 4096 May 23 03:30 ./foo2
131573 1 ... 1 May 23 03:30 ./foo2/selflink -> .
diff -r foo foo2
... # A recursive endless loop...
...link/selflink/selflink: File name too long
diff --version
diff - GNU diffutils version 2.7
Thanks in advance.
--
au revoir,
Gilles Lamiral. France, L'Hermitage (35590).
33 (0) 2 99 78 62 49
33 (0) 6 20 79 76 06
- diff -r with symlink to dir,
Gilles Lamiral <=