There's little reason to require this, given that we can just say that
if a relative path is specified it is to be read relative to the root.
This fixes a bootctl bug introduced by
3730dc5d5b4b7c4e1e7d0957c88568cc45de2390 which didn't bother prefixing
paths as necessary.
if (isempty(path))
return -EINVAL;
- /* We don't support relative paths in combination with a root directory */
- if (FLAGS_SET(flags, CHASE_PREFIX_ROOT) && !path_is_absolute(path))
- return -EINVAL;
-
/* This is a lot like canonicalize_file_name(), but takes an additional "root" parameter, that allows following
* symlinks relative to a root directory, instead of the root of the host.
*