errx prepends the program name to the message; don't do it by hand.

This commit is contained in:
Julio Merino 2014-03-19 12:52:49 +00:00
parent 34ed55723a
commit 2111435b59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263353

View File

@ -543,7 +543,7 @@ main(int argc, char *argv[])
* force the use of privilege, and will likely need checking.
*/
if (getuid() != 0 && geteuid() != 0)
errx(-1, "priv: must be run as root");
errx(-1, "must be run as root");
/*
* Run each test four times, varying whether the process is running