Beiträge von atinar

    You're right Udo, I didn't realize the condition of buffer being a symlink was not tested before calling readlink . I'm glad I posted this here before using it... ;-).


    Thanks,
    atinar

    Hello,
    First of all, excuse me for posting in English, but I've not seen nothing related to patches in international forums. Feel free to reply in German.


    In tools.c, when removing a file that is a symlink, the buffer size allocated for the target file path is twice the size of the link path. Under certain circumstances the supposition this is enough is wrong.


    In countries like mine (allow me to omit which one it is...) there are many TV stations which have serious problems with the quality of the EPG they provide. In particular, they don't seem to understand the difference between the "short description" and "description" fields and are prone to fill the first one with the second one. If you are recording a series episode you may end with a filename which contains as much of the description as possible. When you change the name of the recording for a more reasonable one, the problem is served.


    I think that a call to stat, should be done instead. This patch is for an old vdr, but I think with minor changes it still applies: