bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkdir -p and POSIX


From: Ralf Wildenhues
Subject: Re: mkdir -p and POSIX
Date: Thu, 8 Oct 2009 20:29:13 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

Hello Eric,

* Eric Blake wrote on Thu, Oct 08, 2009 at 06:44:41PM CEST:
> The Austin Group made their recommendation about mkdir -p today:
[...]

> This also means that build-aux/mkinstalldirs and build-aux/install-sh
> are also impacted.

Why?  I don't see anything that defines the behavior of mkinstalldirs or
install-sh wrt. dangling symlinks.

> And there, since we can't guarantee whether the
> system mkdir(1) gracefully handles trailing slashes, it could get
> rather difficult to guarantee creating a directory tree through a
> dangling symlink using portable shell code.

Well, I'd suggest to not use dangling symlinks in your build then.
Symlinks themselves aren't even portable, and Autoconf doesn't even
recommend any way to create a dangling such.

What am I missing?  Thanks for enlightening me.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]