diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 233a70bd2d2a1578f2d91104e8e216ced934584d..40b4f965f253ff090d0c02f8bb6a37e445854b42 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -365,7 +365,7 @@ try_again:
     char buf[bufsiz];
     auto res = readlink(file.c_str(), buf, bufsiz);
     if (res == -1) {
-        if (errno == ENOENT || errno == EACCES)
+        if (errno == ENOENT || errno == EACCES || errno == ESRCH)
             return;
         throw SysError("reading symlink");
     }