gtk suid bug fix(?)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3475 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-12-12 21:47:44 +00:00
parent 3eba4f11b1
commit 5809ae8664
2 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,10 @@ static void gtkThreadProc( int argc,char * argv[] )
{
struct sigaction sa;
#ifdef HAVE_RTC
setuid( getuid() ); // strongly test, please check this.
#endif
gtk_set_locale();
gtk_init( &argc,&argv );
gdk_set_use_xshm( TRUE );

View File

@ -634,6 +634,7 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
} else
printf("Using Linux's hardware RTC timing (%ldHz)\n", irqp);
}
setuid( getuid() ); // strongly test, please check this.
if(rtc_fd<0)
#endif
printf("Using %s timing\n",softsleep?"software":"usleep()");