From 9242c0d8d27ef3b3c5a3cc37a3b4fe6a1d4175ee Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 30 Mar 2024 23:03:40 -0400 Subject: [PATCH] gc: Darwin also gives you EPERM --- src/libstore/gc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index e10156d8a..d08491f20 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -558,7 +558,7 @@ static void readLibprocRoots(const Path & storeDir, UncheckedRoots & unchecked) } } } catch (SysError & e) { - if (errno == ENOENT || errno == EACCES || errno == ESRCH) + if (errno == ENOENT || errno == EACCES || errno == EPERM || errno == ESRCH) continue; throw; }