Re: Symlink indirection

Jeff Bailey (jbailey@nisa.net)
13 Dec 2002 11:51:46 -0500


--=-ZuBDGtkPYwcZPLXl0iuS
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2002-12-13 at 10:23, Richard B. Johnson wrote:

> Since a symlink is just a file containing a name, the resulting path
> length is simply the maximum path length that user-space tools allow.
> This should be defined as "PATH_MAX". Posix defines this as 255 character=
s
> but I think posix requires that this be the minimum and all file-name
> handling buffers must be at least PATH_MAX in length.

Small nit here, the Posix draft I have says that the definition shall be
omitted from the <limits.h> header on specific implementation where the
corresponding value is equal or greater than the stated minimum, but
where the value can vary depending on the file to which it is applied.

Please don't ever rely on PATH_MAX existing. pathconf() is a better
tool. We spend a lot of time chasing authors to explain to them why it
really is okay for the Hurd (i386-pc-gnu)'s libc to omit this
definition.

Tks,
Jeff Bailey=20

--=20
When you get to the heart,
use a knife and fork.
- From instructions on how to eat an artichoke.

--=-ZuBDGtkPYwcZPLXl0iuS
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA9+hAi5M5hmdCYCpkRAjxNAKC9YQm2euNtjC3v1j1IFMc0f4CaRgCg6/gp
en/iKhgXVAd01AaR0YDBLaA=
=NFGF
-----END PGP SIGNATURE-----

--=-ZuBDGtkPYwcZPLXl0iuS--
-
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/