X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fvlc.c;h=2ede9433e4b67ff029654d1266ec13cec7cb9369;hb=696ef23c5d997c56e5fe0daaaf4b382832d35baf;hp=0a77e340c027b10d2283146950612b920df9a4a3;hpb=c15a5164ddd9105ce4de09fc9dcd95d4263ad3df;p=vlc diff --git a/src/vlc.c b/src/vlc.c index 0a77e340c0..2ede9433e4 100644 --- a/src/vlc.c +++ b/src/vlc.c @@ -51,6 +51,15 @@ int main( int i_argc, const char *ppsz_argv[] ) { 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, ""); #ifndef __APPLE__