1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +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 committed by Théophane Hufschmitt
parent d137077271
commit 379274fd7f
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;