Commit fa22e443 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Bring back reckless user proofing.

parent d9799c19
...@@ -51,6 +51,15 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -51,6 +51,15 @@ int main( int i_argc, const char *ppsz_argv[] )
{ {
int i_ret; int i_ret;
if (geteuid () == 0)
{
fprintf (stderr, "VLC is not supposed to be run as root. Sorry.\n"
"If you need to use real-time priorities and/or privileged TCP ports\n"
"you can use %s-wrapper (make sure it is Set-UID root first and\n"
"cannot be run by non-trusted users first).\n", ppsz_argv[0]);
return 1;
}
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
#ifndef __APPLE__ #ifndef __APPLE__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment