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 run modernize 2025-11-11 17:09:37 +05:30
images Fix #10517 2026-09-23 10:44:08 +05:30
machine_id
paths
random
secrets Restrict echo to only allow characters 0-9 2026-07-26 16:05:13 +05:30
shlex Do not drop an escaped U+FFFD in the shlex lexer 2026-09-21 12:05:20 -04:00
streaming_base64 Remove unused code 2026-05-03 11:57:33 +05:30
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 change the atomic write functions to work with readers 2024-07-22 15:01:19 +05:30
clock_with_raw.go
clock_without_raw.go ... 2024-04-09 08:39:42 +05:30
colors.go
download_file.go
embed.go More work on porting the SSH kitten 2023-02-26 08:01:03 +05:30
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 Replace utils.Once with stdlib sync.OnceValue 2023-08-09 12:08:42 +05:30
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 Move error handling code into its own library 2025-10-12 13:51:16 +05:30
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 Cleanup ring buffer implementation 2023-03-07 07:43:53 +05:30
ring_test.go
select.go Function to drain controlling tty 2023-01-23 16:07:00 +05:30
select_posix.go
select_without_pselect.go Code to build static versions of kitty-tool 2022-11-14 16:27:19 +05:30
set.go Convenience method to access any member of a set 2025-05-15 21:40:06 +05:30
shell.go ... 2023-01-04 11:15:47 +05:30
short-uuid.go
short-uuid_test.go
sockets.go Allow launched background process to work with --allow-remote-control 2023-10-18 19:56:58 +05:30
sockets_test.go
stream_decompressor.go Ensure output.Write is not called outside of the stream decompressor function 2023-07-30 19:49:45 +05:30
stream_decompressor_test.go Ensure output.Write is not called outside of the stream decompressor function 2023-07-30 19:49:45 +05:30
strings.go Modernize Go code 2026-03-21 08:41:47 +05:30
strings_test.go Use SIMD to replace C0 control codes in Go code 2025-07-21 08:54:22 +05:30
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 Allow specifying permissions when creating anonymous temp files 2024-07-23 07:28:10 +05:30
tmpfile_others.go
tpmfile_test.go
types.go Remote control: Allow matching for self window even over sockets when run inside a kitty window 2022-12-30 12:17:31 +05:30
unsafe.go
utf-8.go Fix some issues reported by staticcheck 2022-11-14 15:42:01 +05:30
which.go Replace utils.Once with stdlib sync.OnceValue 2023-08-09 12:08:42 +05:30