All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: Use PATH_MAX for pathname char arrays.
Date: Fri, 4 Apr 2008 16:51:21 +0200	[thread overview]
Message-ID: <20080404145121.GF4075@implementation> (raw)
In-Reply-To: <C41BFA2C.1ECFA%keir.fraser@eu.citrix.com>

Keir Fraser, le Fri 04 Apr 2008 15:30:52 +0100, a écrit :
> If there are better alternatives I'd be happy to use them instead. But we
> already use PATH_MAX elsewhere in the tools, so this might be a
> wider-ranging cleanup than you think.

That's possible indeed, I'm just making sure we try to avoid adding
others :)

> The original impetus for this change was due to bugchecks applied in
> some cases by glibc's realpath() implementation.
> But actually is realpath() deprecated anyway?

Ah, right, realpath has a bad semantic indeed.  The intent of SUS is to
have it allocate the string if NULL is given, but that's not necessarily
implemented yet.  In the wild, I only know GNU/Hurd which doesn't have
any PATH_MAX limit, and it happens that that one has the allocation
behavior.

Samuel

      reply	other threads:[~2008-04-04 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 14:17 Use PATH_MAX for pathname char arrays Samuel Thibault
2008-04-04 14:30 ` Keir Fraser
2008-04-04 14:51   ` Samuel Thibault [this message]

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=20080404145121.GF4075@implementation \
    --to=samuel.thibault@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.