chase-symlinks: Drop unnecessary if

This commit is contained in:
Daan De Meyer
2022-11-11 09:52:12 +01:00
parent 8c39e28191
commit c2fc5890e3
-2
View File
@@ -442,9 +442,7 @@ int chase_symlinks(
SYNTHETIC_ERRNO(ECHRNG),
"Specified path '%s' is outside of specified root directory '%s', refusing to resolve.",
absolute, root);
}
if (root) {
fd = open(root, O_CLOEXEC|O_DIRECTORY|O_PATH);
if (fd < 0)
return -errno;