Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Squashfs without ./.. | Date | Thu, 24 Mar 2005 19:59:49 +0000 (UTC) |
| |
Followup to: <20050324133628.196a4c41.Tommy.Reynolds@MegaCoder.com> By author: Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> In newsgroup: linux.dev.kernel > > Then it is broken in several ways. > > First, file systems are not required to implement ".." (only "." is > magical, ".." is a courtesy). >
Sez who? Realistically, most programs that display a list of filenames and has "up one level" as part of the list (not all of them do it that way) probably expect to get ".." in there to display this.
> 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.
Doesn't have anything to do with sorting order or US-ASCII, it has to do with readdir order. If nothing else, it would be highly surprising if "." and ".." weren't first; it's certainly a de facto standard, if not de jure.
-hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |