Commit Graph
10 Commits
Author SHA1 Message Date
skylartaylor 1d281f38c1 atomic: a write-only file's unreadable attributes are dropped, as documented and tested (review)
On macOS a mode-0200 file's owner can list none of its attribute names either, so they are dropped, as
before attributes were kept. An ACL that denies the data but lets the names be listed still refuses the
save. Both are now tested on macOS. Also: the pages key doc gives the macOS exception for Cmd+Home/End.
2026-11-24 04:48:57 +00:00
aiongg 12dfe2c497 Fix macOS gate: docs, Linux-only test helpers, NSGraphicsContext feature for AppKit event tests 2026-11-17 19:34:21 +00:00
aiongg e59460135e Base crates on the framework: theme, behaviour, keymap, platform, window, settings, i18n, fonts 2026-11-12 14:09:48 +00:00
skylartaylor b55b21cdeb Apply permission policy review before first release 2026-10-13 04:33:01 +02:00
skylartaylor b9f475471a Support normal new-file permissions with private atomic staging 2026-10-13 02:26:24 +02:00
skylartaylor eb49a247a3 Gate Unix-only atomic test imports by platform 2026-10-13 00:29:22 +02:00
skylar taylor-barrick 811558a3ad Create Unix atomic-write staging files with private permissions 2026-10-12 20:23:17 +02:00
aiongg d78b352004 Refuse to replace a file the user cannot write (Unix)
A rename needs only a writable folder, so a read-only file would be
replaced where writing it in place would fail. Before staging, the
existing file is opened for writing without truncating; when that fails
the save fails with a read-only error.
2026-10-12 20:23:17 +02:00
aiongg 658ca37c8e Follow symbolic links without canonicalize
The target is found by reading links one hop at a time, resolving
relative links against the link's folder. A dangling link writes the
file it names and stays a link, and a loop of links is an error.
2026-10-12 20:23:17 +02:00
Zach Shallbetter 8df3d87d8b Add craft-atomic: crash-safe atomic write and document replacement (refs #2, fixes #14) 2026-10-12 20:23:17 +02:00