mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
The code implementing the suppression of /usr/lib/kernel, /usr/lib/modules and /usr/local did a rather simplistic prefix comparison with strncmp() to match path names against these exceptions. As a result, paths like /usr/lib/kernel.old which should get reported also got skipped. An if check tested the wrong variable, so the result from strdup() wasn't checked. The replacement code uses regular expression matching and allows replacing the default (--picky-whitelist "/ignore-this-top-level-dir"). A single parameter is enough when using the | operator. A/B partition update must remove extra files in the entire partition, which can be selected with --picky-tree=/, and also needs to override the default whitelist. Fixes #336 Implements #239 Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Notes on manual pages ===================== The manual pages are generated using ``rst2man``\(1). To recreate them, run ``make man`` in the toplevel folder. If you want to edit the documentation for upstream changes, make sure to edit the ``*.rst`` files and not the shipped nroff output files.