forked from lix-project/lix
Robert Hensing
b7ce11c97d
As discussed in the maintainer meeting on 2024-01-29.
Mainly this is to avoid a situation where the name is parsed and
treated as a file name, mostly to protect users.
.-* and ..-* are also considered invalid because they might strip
on that separator to remove versions. Doesn't really work, but that's
what we decided, and I won't argue with it, because .-* probably
doesn't seem to have a real world application anyway.
We do still permit a 1-character name that's just "-", which still
poses a similar risk in such a situation. We can't start disallowing
trailing -, because a non-zero number of users will need it and we've
seen how annoying and painful such a change is.
What matters most is preventing a situation where . or .. can be
injected, and to just get this done.
(cherry picked from commit f1b4663805a9dbcb1ace64ec110092d17c9155e0)
Change-Id:
|
||
---|---|---|
.. | ||
better-errors-in-nix-repl.md | ||
debugger-locals-for-let-expressions.md | ||
debugger-on-trace.md | ||
drop-vendored-toml11.md | ||
drv-string-parse-hang.md | ||
dup-attr-errors.md | ||
empty-search-regex.md | ||
enter-debugger-more-reliably-in-let-and-calls.md | ||
env-size-reduction.md | ||
eval-system.md | ||
forbid-nested-debuggers.md | ||
formal-order.md | ||
inherit-error-positions.md | ||
inherit-from-by-need.md | ||
leading-period.md | ||
new-assertions.md | ||
nix-env-json-drv-path.md | ||
nix-flake-check-logs-actions.md | ||
nix-flake-update-ux.md | ||
nixversion-fake.md | ||
no-cache-eval-errors.md | ||
print-value-in-coercion-error.md | ||
print-value-in-type-error.md | ||
reduce-debugger-clutter.md | ||
repl-doc-command.md | ||
repl-overlays.md | ||
short-expr-flag.md | ||
source-location-in-while-evaluating-attribute.md | ||
source-positions-in-errors.md | ||
stack-overflow-segfaults.md | ||
upgrade-nix-override.md | ||
upgrade-nix-profile-compat.md | ||
upstart-removal.md | ||
with-error-reporting.md |