Griasdebou!
Am Montag, 1. Mai 2006 14:27 schrieb Jörg Wendel:
Ok, thats it, the perms are 0. Sorry it's my bug, i'am using linvdr where vdr is always running as root. For the root user the perms don't matter.
Aha! But you know, every little baby is given with the mother's milk: Don't run a program under the rights of root, if there's no secial necessity! <lol>
Pleas apply the attached patch to the plugin.
I've done this, and now it works a little better, but only a little, cause there's a further problem:
If I try to play a protected recording the following happens: May 1 15:07:45 tecvdr vdr: [768] info: Kinderschutz aktiviert May 1 15:07:55 tecvdr vdr: [768] checking protection of recording '(null)' May 1 15:07:55 tecvdr vdr: [768] checking rights, protection file is '/video/Willi_wills_wissen/2006-04-04.14.50.99.99.rec/protection.fsk' May 1 15:07:55 tecvdr vdr: [768] pin: no translation found for 'Recording protected, enter pin code first' in language 1 (Deutsch) May 1 15:07:55 tecvdr vdr: [768] ERROR: Recording protected, enter pin code first
So far so good! I can play this recording after "opening" the protection with "Gorge Orwells special year-code".
BUT, if I try to protect a recording I've the new old problem: May 1 15:08:45 tecvdr vdr: [768] checking protection of recording 'Clips' May 1 15:08:45 tecvdr vdr: [768] checking rights, protection file is '/video/Clips/protection.fsk' May 1 15:08:51 tecvdr vdr: [768] executing command '/usr/bin/fskprotect.sh protect "/video/Clips/Metallica_-_Hero_of_the_Day/2005-02-02.20.20.99.99.rec"' May 1 15:08:51 tecvdr vdr: [866] Message (0) from (229377) received [-] May 1 15:08:51 tecvdr vdr: [866] Sending message to (229377) failed, errno (13), 'Permission denied' May 1 15:08:51 tecvdr vdr: [866] Message (1) from (262145) received [Please enable pin protection first] May 1 15:08:51 tecvdr vdr: [866] Got 'Please enable pin protection first' May 1 15:08:51 tecvdr vdr: [768] info: Please enable pin protection first
The pin-plugin is active!
tecvdr:~ # ipcs -q
------ Message Queues -------- key msqid owner perms used-bytes messages 0xd8000000 0 vdr 666 0 0
Further I will mak a little wish a improvement-suggestion, if the pin-plugin-menue is displayed on OSD, I'll see: 1 Kanalliste bearbeiten 2 Gesperrte Sendungen bearbeiten 3 Aktuellen Kanal in die Sperrliste aufnehmen 4 Aktuelle Sendung in die Sperrliste aufnehmen 5 Kinderschutz aktivieren
If I try to select menupoint 5 "Kinderschutz aktivieren" an press button 5 nothing happens. I must scroll down and press then the ok-button. Were it possible, to (re)act like VDR in all the other menues?
Have a nice day!
BC