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 Fix #10517 2026-09-23 10:44:08 +05:30
machine_id
paths
random
secrets
shlex Do not drop an escaped U+FFFD in the shlex lexer 2026-09-21 12:05:20 -04:00
streaming_base64
style Parse SGR codes when wrapping text exactly as kitty does 2026-11-19 09:03:09 +05:30
atexit.go
atomic-write.go clipboard: Preserve dangling output symlinks 2026-10-25 22:21:52 +05:30
atomic-write_test.go Cleanup dangling symlink handling in atomic writes 2026-10-25 22:23:27 +05:30
cache.go fix locking in LRUCache 2026-07-27 09:34:01 +05:30
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 handle invalid UTF-8 in binary mime db 2026-10-06 08:58:50 +05:30
mime_cache_test.go Use binary XDG shared MIME database for mimetype lookups 2026-10-06 08:27:55 +05:30
mimetypes.go Use binary XDG shared MIME database for mimetype lookups 2026-10-06 08:27:55 +05:30
misc.go
passwd.go
passwd_test.go
paths.go Cleanup dangling symlink handling in atomic writes 2026-10-25 22:23:27 +05:30
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 Cleanup dangling symlink handling in atomic writes 2026-10-25 22:23:27 +05:30
tar_test.go Apply deferred directory permissions children first when extracting tar 2026-10-16 19:12:51 +05:30
tmpfile_linux.go
tmpfile_others.go
tpmfile_test.go
types.go
unsafe.go
utf-8.go
which.go