|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/jimmy/mplayer/devfs_path_fix.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
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. */
|
|
|