changeset 3474:47983b6a042d

gtk suid bug fix(?)
author pontscho
date Wed, 12 Dec 2001 21:47:44 +0000
parents 8a46f6a9efd0
children 390388c75209
files Gui/mplayer/widgets.c mplayer.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 );
--- 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()");