kitty/tools/utils
Kovid Goyal 72c2b119c3
dnd kitten: Never create remote directories through a staged symlink
The fix for CVE-2026-54056 only made remote regular file creation
exclusive. A remote source could still send a symlink and then a
directory with the same name, as names were only de-duplicated on
case insensitive filesystems. CreateDirAt() would then follow the
symlink and the directory's children would be written outside the
staging directory.

Always de-duplicate names, create remote directories exclusively and
never follow symlinks when opening a newly created directory.
2026-11-19 12:48:00 +05:30
..
base85
humanize
images
machine_id
paths
random
secrets
shlex
streaming_base64
style
atexit.go
atomic-write.go
atomic-write_test.go
cache.go
cached_values.go
clock_with_raw.go
clock_without_raw.go
colors.go
download_file.go
embed.go
file_at_fd.go dnd kitten: Never create remote directories through a staged symlink 2026-11-19 12:48:00 +05:30
file_at_fd_darwin.go
file_at_fd_dragonfly.go
file_at_fd_freebsd.go
file_at_fd_generic.go
file_at_fd_test.go dnd kitten: Never create remote directories through a staged symlink 2026-11-19 12:48:00 +05:30
filelock.go
filelock_test.go
hostname.go
io.go
iso8601.go
iso8601_test.go
levenshtein.go
longest-common.go
longest-common_test.go
mime_cache.go
mime_cache_test.go
mimetypes.go
misc.go
passwd.go
passwd_test.go
paths.go
regexp.go
ring.go
ring_test.go
select.go
select_posix.go
select_without_pselect.go
set.go
shell.go
short-uuid.go
short-uuid_test.go
sockets.go
sockets_test.go
stream_decompressor.go
stream_decompressor_test.go
strings.go
strings_test.go
tar.go
tar_test.go
tmpfile_linux.go
tmpfile_others.go
tpmfile_test.go
types.go
unsafe.go
utf-8.go
which.go