# HG changeset patch # User pontscho # Date 1008193664 0 # Node ID 47983b6a042deef0522db9336618dc7ead0ee6f9 # Parent 8a46f6a9efd04c23ce674d1d46f3140faa9b0ba7 gtk suid bug fix(?) diff -r 8a46f6a9efd0 -r 47983b6a042d Gui/mplayer/widgets.c --- a/Gui/mplayer/widgets.c Wed Dec 12 18:48:07 2001 +0000 +++ b/Gui/mplayer/widgets.c Wed Dec 12 21:47:44 2001 +0000 @@ -68,6 +68,10 @@ { 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 ); diff -r 8a46f6a9efd0 -r 47983b6a042d mplayer.c --- a/mplayer.c Wed Dec 12 18:48:07 2001 +0000 +++ b/mplayer.c Wed Dec 12 21:47:44 2001 +0000 @@ -634,6 +634,7 @@ } 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()");