1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 09:21:47 +02:00

replace "OS X" with "macOS"

This commit is contained in:
davidak 2017-07-30 12:28:50 +02:00
parent 92bcb61127
commit fcb8d6a7a0
2 changed files with 3 additions and 3 deletions

View file

@ -98,14 +98,14 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa
throw SysError(format("getting attributes of path %1%") % path);
#if __APPLE__
/* HFS/OS X has some undocumented security feature disabling hardlinking for
/* 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/PkgInfo$")) ||
std::regex_search(path, std::regex("\\.app/Contents/Resources/.+\\.lproj$"))) {
debug(format("%1% is not allowed to be linked in OS X") % path);
debug(format("%1% is not allowed to be linked in macOS") % path);
return;
}
#endif