diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-04-01 10:44:28 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-04-01 10:47:54 +0300 |
commit | 845b6397ab42ef9bca8d9f38cf2b7b2640917a23 (patch) | |
tree | 23d5528bb223dfcfba818b7f6bd7d060765ad6c6 /libfetch/ftp.c | |
parent | eae92bbacf3c005bf12f8f5f5555bff953ebb5d7 (diff) | |
download | apk-tools-845b6397ab42ef9bca8d9f38cf2b7b2640917a23.tar.gz apk-tools-845b6397ab42ef9bca8d9f38cf2b7b2640917a23.tar.bz2 apk-tools-845b6397ab42ef9bca8d9f38cf2b7b2640917a23.tar.xz apk-tools-845b6397ab42ef9bca8d9f38cf2b7b2640917a23.zip |
db: fix database reading without scripts or triggers
Most notably this happens after blank database is initialized with --initdb,
but can happen also in other conditions.
The error checking changes modified behaviour if the file does not exist.
Explicitly check for ENOENT and ignore it. But the behaviour is improved
from earlier as now e.g. EPERM will be detected and reported correctly.
Fixes #10679
Fixes: 6da3e8eb15 "istream, archive, db: convert db and tar function to use istream"
Diffstat (limited to 'libfetch/ftp.c')
0 files changed, 0 insertions, 0 deletions