diff options
Diffstat (limited to 'third_party/nix/src/nix/doctor.cc')
-rw-r--r-- | third_party/nix/src/nix/doctor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/doctor.cc b/third_party/nix/src/nix/doctor.cc index 44b4bd605d6c..79e9eb5394e7 100644 --- a/third_party/nix/src/nix/doctor.cc +++ b/third_party/nix/src/nix/doctor.cc @@ -1,3 +1,5 @@ +#include <absl/strings/match.h> + #include "command.hh" #include "serve-protocol.hh" #include "shared.hh" @@ -73,7 +75,7 @@ struct CmdDoctor : StoreCommand { Path userEnv = canonPath(profileDir, true); if (store->isStorePath(userEnv) && - hasSuffix(userEnv, "user-environment")) { + absl::EndsWith(userEnv, "user-environment")) { while (profileDir.find("/profiles/") == std::string::npos && isLink(profileDir)) { profileDir = absPath(readLink(profileDir), dirOf(profileDir)); |