Re: Squashfs without ./..

From: Tommy Reynolds
Date: Thu Mar 24 2005 - 14:40:48 EST


Uttered Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>, spake thus:

> > There's probably a number of apps that skip the first two dirents, instead
> > of checking for the dot dirs.
>
> Yep, check `-noleaf' in find(1)

Then it is broken in several ways.

First, file systems are not required to implement ".." (only "." is
magical, ".." is a courtesy).

Second, skipping the first two entries carries an implied assumtion
about the file name sorting order that is not portable in a
non-US-ASCII world.

Cheers

Attachment: pgp00000.pgp
Description: PGP signature