summaryrefslogtreecommitdiff
path: root/src/version.c
diff options
context:
space:
mode:
authorDaniel Kolesa <daniel@octaforge.org>2023-02-16 15:11:16 +0100
committerTimo Teräs <timo.teras@iki.fi>2023-02-16 18:55:48 +0000
commit3aa99faa83d08e45eff8a5cc95c4df16fb5bd257 (patch)
tree6628283b62f96b465405dfc859bdb8d05df35f11 /src/version.c
parentc2e42e220af4bbf3a852fb55663b070c81519f05 (diff)
downloadapk-tools-3aa99faa83d08e45eff8a5cc95c4df16fb5bd257.tar.gz
apk-tools-3aa99faa83d08e45eff8a5cc95c4df16fb5bd257.tar.bz2
apk-tools-3aa99faa83d08e45eff8a5cc95c4df16fb5bd257.tar.xz
apk-tools-3aa99faa83d08e45eff8a5cc95c4df16fb5bd257.zip
io: reset idcache for new passwd/group (and have a root fallback)
In order to address the problem with early file ownership (before passwd/group exists), do a few changes here: 1) For root-owned things, always fall back to fixed values, as those are the ones we always know and cannot change. Since the earliest packages only have root-owned files, this fixes the problem for those. 2) During file migration, if we encounter passwd/group and this is a newly committed file, reset the idcache, similarly to how it is done for scripts. This allows the next package to reload the mappings. Since those two files are usually installed as a part of the first package, the second package onwards should have a valid, complete mapping (reset only by scripts).
Diffstat (limited to 'src/version.c')
0 files changed, 0 insertions, 0 deletions