diff options
Diffstat (limited to 'src/main-utils.c')
-rw-r--r-- | src/main-utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main-utils.c b/src/main-utils.c index a975f0baad..cde5fb8cee 100644 --- a/src/main-utils.c +++ b/src/main-utils.c @@ -36,6 +36,7 @@ #include "gsystem-local-alloc.h" #include "main-utils.h" +#include "NetworkManagerUtils.h" #include "nm-logging.h" static gboolean @@ -174,10 +175,10 @@ nm_main_utils_ensure_not_running_pidfile (const char *pidfile, const char *name) } void -nm_main_utils_ensure_root (const char *progname) +nm_main_utils_ensure_root () { if (getuid () != 0) { - fprintf (stderr, _("You must be root to run %s!\n"), progname); + fprintf (stderr, _("You must be root to run %s!\n"), str_if_set (g_get_prgname (), "")); exit (1); } } |