summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2023-09-16 12:53:07 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2023-09-16 12:53:07 +0200
commitda2c2f702fb448857d94304adea0ecd3984c9c15 (patch)
treefee294966a82c0c3b829cb2a2e39df59b85a7685
parent0cfc1750d5ff04be6a153a2ae29cdc71a4467a90 (diff)
Remove unnecessary explicit st_dev check for merged-usr
-rw-r--r--apt-pkg/aptconfiguration.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc
index cfe38ec83..0e4cecd99 100644
--- a/apt-pkg/aptconfiguration.cc
+++ b/apt-pkg/aptconfiguration.cc
@@ -556,8 +556,6 @@ bool Configuration::checkUsrMerged()
continue;
if (stat(dirInUsr.c_str(), &usr))
continue;
- if (root.st_dev != usr.st_dev)
- return _error->Error("%s is on different device than %s", dirInRoot.c_str(), dirInUsr.c_str());
if (root.st_ino != usr.st_ino)
return _error->Error("%s resolved to a different inode than %s", dirInRoot.c_str(), dirInUsr.c_str());
}