[vdr] vdr-1.7.22 mips_uClibc-0.9.30.1 (tools.c canonicalize_file_name...)
Theunis Potgieter
theunis.potgieter at gmail.com
Wed Jan 4 21:11:28 CET 2012
I would change:
- char *TargetName = canonicalize_file_name(FileName);
+ char *TargetName = MALLOC(char, PATH_MAX);
+ TargetName = realpath(FileName, TargetName);
to
- char *TargetName = canonicalize_file_name(FileName);
+ TargetName = realpath(FileName, NULL);
>From http://linux.die.net/man/3/realpath To prevent a memory leak.
Theunis
On 4 January 2012 21:59, Infonux <infonux at gmail.com> wrote:
> Wed, 4 Jan 2012 14:46:18 +0100
> Infonux <infonux__gmail.com> wrote:
>
> solved by removing FADVISE and ...
>
>
> http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch
> http://www.vdr-portal.de/index.php?page=Thread&postid=641884
>
>
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20120104/34899256/attachment.html>
More information about the vdr
mailing list