daemon: Fix warning message when running as root without a build user group.
* nix/nix-daemon/guix-daemon.cc (main): Fix warning message when running as root without `--build-users-group'.
This commit is contained in:
parent
6221db61f5
commit
2498d43adb
|
@ -193,8 +193,8 @@ main (int argc, char *argv[])
|
||||||
argp_parse (&argp, argc, argv, 0, 0, 0);
|
argp_parse (&argp, argc, argv, 0, 0, 0);
|
||||||
|
|
||||||
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
||||||
fprintf (stderr, "warning: running as root is highly recommended, "
|
fprintf (stderr, "warning: daemon is running as root, so "
|
||||||
"unless `--build-users-group' is used\n");
|
"using `--build-users-group' is highly recommended\n");
|
||||||
|
|
||||||
#ifdef HAVE_CHROOT
|
#ifdef HAVE_CHROOT
|
||||||
if (settings.useChroot)
|
if (settings.useChroot)
|
||||||
|
|
Loading…
Reference in New Issue