public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Collier-Brown <davecb@sun.com>
To: Ray Lee <ray-lk@madrabbit.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	Oliver.Soltys@rsel.renesas.com, linux-kernel@vger.kernel.org
Subject: Re: directory sort order no longer beginning with "." and ".."?
Date: Tue, 29 Jul 2008 13:11:12 -0400	[thread overview]
Message-ID: <488F4F30.1070903@sun.com> (raw)
In-Reply-To: <2c0942db0807290935s67eba63te5bb826a0ab7c752@mail.gmail.com>



Ray Lee wrote:
> On Tue, Jul 29, 2008 at 7:53 AM, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> 
>>Oliver Soltys wrote:
>>
>>>My question: is this a bug, or a feature? I could not find anything about
>>>that
>>>anywhere...
>>>
>>>Does anybody have an idea, how I can fix this? Unfortunately, our
>>>application
>>>can not be changed.
>>
>>No Unix-like system makes any guarantee about the order of '.' and '..' with
>>respect to other directory entries.  They've often appeared first as an
>>implementation side-effect, but that's highly system and filesystem
>>dependent.

 Alas, this implementation side-effect dates back to v6[1], and is so
depended upon that even  CD filesystems, which are by no means Unix-like,
contain dummy "." and ".." entries[2].

  I'd recommend either reproducing it or starting a project
to hunt down and kill all the programs which assume it (;-))

--dave
[1. I helped on the DPS-6 upgrade from v6 to v7, and it was a (dis)feature then]
[2. Andy Tannenbaum "Modern Operating Systems", 2nd Edition]

> That's a good idea, though based on his description it's even easier.
> The LD_PRELOAD just needs to artificially introduce . and .., at the
> beginning and toss them out once it hits them in the list. No sorting
> required.
-- 
David Collier-Brown            | Always do right. This will gratify
Sun Microsystems, Toronto      | some people and astonish the rest
davecb@sun.com                 |                      -- Mark Twain
(905) 943-1983, cell: (647) 833-9377, (800) 555-9786 x56583
bridge: (877) 385-4099 code: 506 9191#

  reply	other threads:[~2008-07-29 17:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29  9:49 directory sort order no longer beginning with "." and ".."? Oliver Soltys
2008-07-29 14:53 ` Jeremy Fitzhardinge
2008-07-29 16:35   ` Ray Lee
2008-07-29 17:11     ` David Collier-Brown [this message]
2008-07-29 17:24       ` Jeremy Fitzhardinge
2008-07-29 17:28     ` Jeremy Fitzhardinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=488F4F30.1070903@sun.com \
    --to=davecb@sun.com \
    --cc=Oliver.Soltys@rsel.renesas.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-lk@madrabbit.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox