Use fstat to get the size of the opened fd to avoir a potential race
modified libpkg/pkg_audit.c
@@ -860,11 +860,13 @@ pkg_audit_load(struct pkg_audit *audit, const char *fname)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|