From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Oliver.Soltys@rsel.renesas.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: directory sort order no longer beginning with "." and ".."?
Date: Tue, 29 Jul 2008 07:53:14 -0700 [thread overview]
Message-ID: <488F2EDA.2090709@goop.org> (raw)
In-Reply-To: <488EE7BF.4020908@rsel.renesas.com>
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.
If you can't modify the app, you might consider some LD_PRELOAD library
to replace readdir with something that sorts the results in the order
your app expects. There's already examples of that kind of thing to
sort the results by inode.
J
next prev parent reply other threads:[~2008-07-29 14:53 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 [this message]
2008-07-29 16:35 ` Ray Lee
2008-07-29 17:11 ` David Collier-Brown
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=488F2EDA.2090709@goop.org \
--to=jeremy@goop.org \
--cc=Oliver.Soltys@rsel.renesas.com \
--cc=linux-kernel@vger.kernel.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