unit/auto
Alex Colomar f93361979a Avoided modifying existing directories at 'make install'.
'install -d' has an issue compared to 'mkdir -p':  it doesn't
respect existing directories.  It will set the ownership, file
mode, and SELinux contexts (and any other property that would be
set by install(1) to a newly-created directory), overwriting any
existing properties of the existing directory.

'mkdir -p' doesn't have this issue:  it is a no-op if the
directory exists.  However, it's not an ideal solution either,
since it can't be used to set the properties (owner, mode, ...) of
a newly-created directory.

Therefore, the best solution is to use install(1), but only after
making sure that the directory doesn't exist with test(1).

Reported-by: Andrew Clayton <a.clayton@nginx.com>
Reported-by: Alejandro Colomar <alx@nginx.com>
Closes: <https://github.com/nginx/unit/issues/769>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
2022-10-20 15:50:05 +02:00
..
cc Using compiler capability to generate dependencies. 2017-12-01 16:28:06 +03:00
echo Fixed displaying "echo" program building failure. 2017-09-22 20:13:55 +03:00
modules PHP: Fixed php_module_startup() call for PHP 8.2. 2022-10-19 12:59:49 +02:00
os Printing version in "./configure" output. 2021-12-03 03:11:06 +03:00
atomic Macros for atomic 'OR' and 'AND' operations introduced. 2017-04-21 16:55:13 +03:00
capability Initial applications isolation support using Linux namespaces. 2019-09-19 15:25:23 +03:00
clang Added NXT_MAYBE_UNUSED for __attribute__((__unused__)). 2022-04-27 01:14:22 +02:00
events Initial version. 2017-01-17 20:00:00 +03:00
feature PHP: fixed building on MacOSX with --ld-opt= option. 2018-05-30 18:31:26 +03:00
files Static: support for openat2() features. 2021-04-29 22:04:34 +08:00
have Initial version. 2017-01-17 20:00:00 +03:00
help Added build system support for a man page. 2021-03-24 18:45:45 +03:00
isolation Rejecting non-Linux pivot_root(2). 2022-08-02 19:50:10 +02:00
make Avoided modifying existing directories at 'make install'. 2022-10-20 15:50:05 +02:00
malloc Checking mallopt() during configure. 2017-09-25 17:53:10 +03:00
mmap Initial version. 2017-01-17 20:00:00 +03:00
options Added build system support for a man page. 2021-03-24 18:45:45 +03:00
pcre Router: matching regular expressions support. 2020-11-17 15:03:30 +00:00
save Using disk file to store large request body. 2020-03-12 17:54:29 +03:00
sendfile Supporting platforms without sendfile() implementation. 2020-08-17 12:28:48 +03:00
shmem Added support for shm_open(SHM_ANON) extension. 2018-03-06 13:55:51 +00:00
sockets Removed unnecessary include. 2022-07-18 19:09:30 +02:00
sources Fixed the build on MacOS (and others). 2022-10-14 12:25:47 +01:00
ssltls Added TLS session tickets support. 2021-08-17 16:52:32 -07:00
summary Configuration: added the regex status in configure summary. 2022-10-20 12:02:27 +08:00
test_build Initial version. 2017-01-17 20:00:00 +03:00
threads Removed deprecated MacOSX OSSpinLockLock(). 2018-09-17 16:37:17 +03:00
time Better checking for shm_open() during configure. 2017-09-27 18:34:23 +03:00
types Initial version. 2017-01-17 20:00:00 +03:00
unix Removed code used when NXT_HAVE_POSIX_SPAWN is false. 2022-07-18 19:09:30 +02:00