4c8d1801ea
The package file passed as input might be pointing to a symlink. If we use lstat().st_size we will get the symlink file size back rather than the source file size, which is of course unwanted. This is part of the fixes for bug 4604.