From 8374cc623579e57ae79b62fce2f11627957148e2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 7 Dec 2017 17:19:11 +0900 Subject: [PATCH] meson: warn if nobody-user and nobody-group are set to different name It may work, but is very strange. So, let's warn about that. v2: Debian uses nobody and nogroup. Do not warn such case. --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index c70a9874ad..bdde42b996 100644 --- a/meson.build +++ b/meson.build @@ -680,6 +680,11 @@ if id_result.returncode() == 0 ' Your build will result in an group table setup that is incompatible with the local system.') endif endif +if nobody_user != nobody_group and not (nobody_user == 'nobody' and nobody_group == 'nogroup') + message('WARNING:\n' + + ' The configured user name "@0@" and group name "@0@" of the nobody user/group are not equivalent.\n'.format(nobody_user, nobody_group) + + ' Please re-check that both "nobody-user" and "nobody-group" options are correctly set.') +endif conf.set_quoted('NOBODY_USER_NAME', nobody_user) conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)