[FFmpeg-cvslog] r26074 - trunk/libavutil/file.c

Reimar Döffinger Reimar.Doeffinger
Wed Dec 22 17:32:44 CET 2010


On 22 dec 2010, at 16:32, stefano <subversion at mplayerhq.hu> wrote:

> Author: stefano
> Date: Wed Dec 22 16:32:13 2010
> New Revision: 26074
> 
> Log:
> Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.
> 
> Modified:
>   trunk/libavutil/file.c
> 
> Modified: trunk/libavutil/file.c
> ==============================================================================
> --- trunk/libavutil/file.c    Wed Dec 22 15:13:04 2010    (r26073)
> +++ trunk/libavutil/file.c    Wed Dec 22 16:32:13 2010    (r26074)
> @@ -54,7 +54,7 @@ int av_file_map(const char *filename, ui
>         return err;
>     }
> 
> -    if (lstat(filename, &st) < 0) {
> +    if (stat(filename, &st) < 0) {
>         err = AVERROR(errno);
>         av_strerror(err, errbuf, sizeof(errbuf));
>         av_log(&file_log_ctx, AV_LOG_ERROR, "Error occurred in lstat(): %s\n", errbuf);

You forgot to change the error message here.



More information about the ffmpeg-cvslog mailing list