Merge pull request #27299 from yuwata/chase-absolute
chase: return absolute path when dir_fd points to the root directory
This commit is contained in:
@@ -540,7 +540,7 @@ int find_esp_and_warn(
|
||||
return r;
|
||||
|
||||
if (ret_path) {
|
||||
r = path_prefix_root_cwd(p, root, ret_path);
|
||||
r = chaseat_prefix_root(p, root, ret_path);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
@@ -859,7 +859,7 @@ int find_xbootldr_and_warn(
|
||||
return r;
|
||||
|
||||
if (ret_path) {
|
||||
r = path_prefix_root_cwd(p, root, ret_path);
|
||||
r = chaseat_prefix_root(p, root, ret_path);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user