* lib/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
authorAlexandre Duret-Lutz <adl@gnu.org>
Sat, 14 Oct 2006 13:36:40 +0000 (13:36 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sat, 14 Oct 2006 13:36:40 +0000 (13:36 +0000)
commit73eeeac81a8d6c8470ff58eecdd75fa722e05cee
treef96f3387ef45a3122e90f51fb3babff67b831fd2
parentff2589328fd425cf226a0baa2c433f0b6f491b09
* lib/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
which incorrectly sets the mode of an existing destination
directory.  In some cases the unpatched install-sh could do the
equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
system.  We hope this is rare in practice, but it's clearly worth
fixing.  Problem reported by Alex Unleashed in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
Also, don't bother to check for -m bugs unless we're using -m;
suggested by Stepan Kasal.
lib/install-sh