Browse Source

Sebastian Jaenicke <tsa@jaenicke.org>:

fixed mplayer /dev/misc/rtc useage


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1745 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Sebastian Jaenicke 21 years ago
parent
commit
eb3ed47406
2 changed files with 15 additions and 0 deletions
  1. +1
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +14
    -0
      package/jimmy/mplayer/devfs_path_fix.patch

+ 1
- 0
Documentation/Developers/CHANGELOG-RENE

@ -7,6 +7,7 @@
- fixed apache to use the same bdb as subversion does (need config option)
- fixed xfree86 cron job
- Sebastian Jaenicke: updated opera, maildrop and ntp
fixed mplayer /dev/misc/rtc useage
- Andreas V. Meier: fixed nikolaus/unison to parse the uname output correctly
*) 2003-11-10 (2.0.0-rc2 - 2.0.0-rc3)

+ 14
- 0
package/jimmy/mplayer/devfs_path_fix.patch

@ -0,0 +1,14 @@
diff -Nur MPlayer-0.92/mplayer.c MPlayer-0.92.sj/mplayer.c
--- MPlayer-0.92/mplayer.c 2003-08-09 16:12:39.000000000 +0200
+++ MPlayer-0.92.sj/mplayer.c 2003-11-11 00:27:58.000000000 +0100
@@ -980,8 +980,8 @@
if(!nortc)
{
// seteuid(0); /* Can't hurt to try to get root here */
- if ((rtc_fd = open("/dev/rtc", O_RDONLY)) < 0)
- mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/rtc: %s (mplayer should be setuid root or /dev/rtc should be readable by the user.)\n", strerror(errno));
+ if ((rtc_fd = open("/dev/misc/rtc", O_RDONLY)) < 0)
+ mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/misc/rtc: %s (mplayer should be setuid root or /dev/misc/rtc should be readable by the user.)\n", strerror(errno));
else {
unsigned long irqp = 1024; /* 512 seemed OK. 128 is jerky. */

Loading…
Cancel
Save