about summary refs log tree commit diff
path: root/third_party/nix/src/libstore/optimise-store.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-23T23·48+0100
committerVincent Ambo <tazjin@google.com>2020-05-24T01·13+0100
commit10481d25861f1c25b53cfbd8119199ef2e918f9f (patch)
treee89d668351fa12faa7b1508c2a7a68582d48bf22 /third_party/nix/src/libstore/optimise-store.cc
parentbac38f3c49db6d9a85ba447d164d35811dfdc8f9 (diff)
chore(3p/nix): Remove some OS X specific defines r/834
This project will be dropping OS X support until the core is simplified.
Diffstat (limited to 'third_party/nix/src/libstore/optimise-store.cc')
-rw-r--r--third_party/nix/src/libstore/optimise-store.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/third_party/nix/src/libstore/optimise-store.cc b/third_party/nix/src/libstore/optimise-store.cc
index d7cf2bb744..caeff72363 100644
--- a/third_party/nix/src/libstore/optimise-store.cc
+++ b/third_party/nix/src/libstore/optimise-store.cc
@@ -105,18 +105,6 @@ void LocalStore::optimisePath_(OptimiseStats& stats, const Path& path,
     throw SysError(format("getting attributes of path '%1%'") % path);
   }
 
-#if __APPLE__
-  /* HFS/macOS has some undocumented security feature disabling hardlinking for
-     special files within .app dirs. *.app/Contents/PkgInfo and
-     *.app/Contents/Resources/\*.lproj seem to be the only paths affected. See
-     https://github.com/NixOS/nix/issues/1443 for more discussion. */
-
-  if (std::regex_search(path, std::regex("\\.app/Contents/.+$"))) {
-    debug(format("'%1%' is not allowed to be linked in macOS") % path);
-    return;
-  }
-#endif
-
   if (S_ISDIR(st.st_mode)) {
     Strings names = readDirectoryIgnoringInodes(path, inodeHash);
     for (auto& i : names) {