mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Revert "StorePath: reject names starting with '.'"
This reverts commit 24bda0c7b3
.
This commit is contained in:
parent
b83a2fb6dd
commit
9ddd0f2af8
4 changed files with 3 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue