Martin Costabel wrote:

But the trailing slash problem must have a different cause. I am still unable to reproduce it, although I tried with all kinds of Fink versions of fileutils. It must be something in the environment. But I don't know where to look.

The test case that I could reproduce 100% with was:

tar -xjf /sw/src/X430.tar.bz2
rm -rf xc

It supposedly is a problem in panther's implementation readdir(), so the "real" cause is things using that. This is the conversation we had about it on irc last night (bbraun is an Apple engineer).

<bbraun> RangerRick: yeah, happens often. are you using gnu file utils or the /bin/rm?
<RangerRick> bbraun: gnu coreutils (fileutils successor)
<dmalloc> that's because of the buggy readdir implementation on Mac OS Xm RangerRick
<bbraun> dmalloc: yes.
<dmalloc> try creating a dir with 339 files it should fail after 338
<RangerRick> dmalloc: ok, what's the fix/workaround? some stuff specifically wants fileutils and/or coreutils
<dmalloc> RangerRick: using the pure BSD /bin/rm uses a different approach which requires more memory but no buggy readdir
<RangerRick> what about mv? same problem?
<dmalloc> yes
<dmalloc> uses the same readdir to know what it is doing


-- Benjamin Reed a.k.a. Ranger Rick -- http://ranger.befunk.com/ gpg: 6401 D02A A35F 55E9 D7DD 71C5 52EF A366 D3F6 65FE You had me at HELO.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to