filebundle: follow symlinks on the local filesystem

This commit is contained in:
Adam Sutton 2013-06-03 17:12:50 +01:00
parent da70a74f9e
commit dce7902664

View file

@ -402,7 +402,7 @@ fb_file *fb_open2
FILE *fp = fopen(path, "rb");
if (fp) {
struct stat st;
lstat(path, &st);
stat(path, &st);
ret = calloc(1, sizeof(fb_file));
ret->type = FB_DIRECT;
ret->size = st.st_size;