]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: warn if nobody-user and nobody-group are set to different name 7567/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 08:19:11 +0000 (17:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 08:19:11 +0000 (17:19 +0900)
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

index c70a9874ad57dad2105b9d70adeb90177ce03577..bdde42b996a09a81ba4565bc3ec7ed5bcd91a238 100644 (file)
@@ -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)