From: Roy Marples Date: Sun, 10 Feb 2008 23:08:34 +0000 (+0000) Subject: Just warn when running as non root. X-Git-Tag: v3.2.3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182ac3def5aabd9cfcd16549c0f9caecf94b5c3f;p=thirdparty%2Fdhcpcd.git Just warn when running as non root. --- diff --git a/dhcpcd.c b/dhcpcd.c index fd517709..fb47417d 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -509,10 +509,9 @@ int main(int argc, char **argv) goto abort; } - if (geteuid ()) { - logger (LOG_ERR, "you need to be root to run " PACKAGE); - goto abort; - } + if (geteuid ()) + logger (LOG_WARNING, PACKAGE " will not work correctly unless" + " run as root"); prefix = xmalloc (sizeof (char) * (IF_NAMESIZE + 3)); snprintf (prefix, IF_NAMESIZE, "%s: ", options->interface);