Fix listing overrides in system-info with recent pressure-vessel
- May 12, 2021
-
-
Simon McVittie authored
When pressure-vessel operates in --copy-runtime mode, /overrides is a symlink to /usr/lib/pressure-vessel/overrides. "find /overrides -ls" is useless here: it just lists the symlink, rather than traversing the directory hierarchy. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
"foo/bar/" is meant to be exactly equivalent to "foo/bar/.", and almost equivalent to "foo/bar" (with the important difference that it fails if bar is a non-directory). Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Previously, this would have incorrectly returned success with the error set, breaking the usual GError invariants. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
At this point, current_path is everything up to but not including fd. For example, if we are traversing "x/y/z/w" with current_path = "x/y", then the fds array contains { x, y } and fd is the result of opening z. We're looking at the result of calling fstatat() on z, so we need to see "x/y/z" in the error messages, for example if z is a regular file (therefore "x/y/z/w" cannot possibly exist). Signed-off-by:
Simon McVittie <smcv@collabora.com>
-