Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 22 Dec 2010 15:32:13 +0000 (15:32 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 22 Dec 2010 15:32:13 +0000 (15:32 +0000)
Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/file.c

index 6f7011b..b325149 100644 (file)
@@ -54,7 +54,7 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
         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);