1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 18:31:49 +02:00

Revert "StorePath: reject names starting with '.'"

This reverts commit 24bda0c7b3.
This commit is contained in:
Robert Hensing 2024-01-27 11:18:03 +01:00
parent b83a2fb6dd
commit 9ddd0f2af8
4 changed files with 3 additions and 10 deletions

View file

@ -46,12 +46,8 @@ Gen<StorePathName> Arbitrary<StorePathName>::arbitrary()
pre += '-';
break;
case 64:
// names aren't permitted to start with a period,
// so just fall through to the next case here
if (c != 0) {
pre += '.';
break;
}
pre += '.';
break;
case 65:
pre += '_';
break;