Skip to content

Commit f2a9f47

Browse files
committed
configure.ac, NEWS.adoc: warn if nobody or nogroup end up being used for a build [#3173]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent cb8e755 commit f2a9f47

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

NEWS.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ several `FSD` notifications into one executed action. [PR #3097]
266266
- The `configure` script would now probe (if it can) the operating systems for
267267
more user and group account names, such as `upsmon`, `nutmon`, `ups`, `nut`
268268
(last hit wins, separately for user and groups accounts) settling on one of
269-
those if detected instead of `nobody` (and optionally `nogroup`). [#3173]
269+
those if detected instead of `nobody` (and optionally `nogroup`). It would
270+
also warn if `nobody` or `nogroup` end up being used for a build. [#3173]
270271

271272
- Updated `make spellcheck` to help avoid asciidoc admonition blocks with
272273
visually invalid sentences (after rendering as a box in HTML or PDF). [#3077]

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6950,6 +6950,12 @@ AS_IF([test -s "${ABS_TOP_SRCDIR}/install-sh" && ${GREP} -w MKDIRPROG "${ABS_TOP
69506950
])
69516951
])
69526952

6953+
AS_IF([test x"${RUN_AS_USER}" = xnobody || test x"${RUN_AS_GROUP}" = xnobody || test x"${RUN_AS_GROUP}" = xnogroup], [
6954+
AC_MSG_NOTICE([==========================================================])
6955+
AC_MSG_NOTICE([You have configured a build for default user '${RUN_AS_USER}' or])
6956+
AC_MSG_NOTICE([group '${RUN_AS_GROUP}' account names. This may be not safe.])
6957+
])
6958+
69536959
AS_IF([test x"${NUT_VERSION_DEPLOYED-}" = x"<reenter>"], [
69546960
AC_MSG_NOTICE([==========================================================])
69556961
AC_MSG_NOTICE([You have configured a build for "in-place" replacement])

0 commit comments

Comments
 (0)