Fix possible fd leak if fd==0
modified libpkg/utils.c
@@ -159,7 +159,7 @@ file_to_buffer(const char *path, char **buffer, off_t *sz)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/audit.c
@@ -212,7 +212,7 @@ fetch_and_extract(const char *src, const char *dest, bool xml)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|