aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-22 15:32:13 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-22 15:32:13 +0000
commit1b31037d625c1e9c09d02190e74452f3925485f6 (patch)
treed98a0ee33e71fca5ed360b86f88993539559fec1 /libavutil
parent0328b9ea39e86cb462a189eb1dfcc4065c1f332b (diff)
downloadffmpeg-1b31037d625c1e9c09d02190e74452f3925485f6.tar.gz
Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.
Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/file.c b/libavutil/file.c
index 6f7011b0c0..b325149f49 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -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);