dotCooCoo
4e2a9f0ab0
Testkit: harden TempDir against a moved root, owner-unusable modes and bad names
...
`TempDir::new_in` passed the root to `tempfile` as given, so when the root was
reached through a link that changed during the test, `path()` named the old
folder while drop and `close()` resolved the link again: the folder that was
made stayed and a folder with the same name under the new target could be
removed. The root is now canonicalized before the folder is made, and the
symlink-root test retargets the link before the drop.
On Unix a umask that removes owner read, write or search permission left the
new folder unusable (for example mode 0o300) while `TempDir::new` returned
Ok, since the owner probe needs only write and search; cleanup then failed.
`check` now returns PermissionDenied unless the owner has all three, before
the probe runs.
`TempDir::new` and `TempDir::file` also return InvalidInput for `<`, `>`,
`"`, `|`, `?`, `*` and control characters, which Windows does not allow in a
file name, on every platform. The README and doc comments list them.
2026-11-28 09:42:49 -08:00
..
2026-11-25 14:48:58 -08:00
2026-11-25 22:12:52 -08:00
2026-11-28 02:27:23 -08:00
2026-11-28 00:54:40 -08:00
2026-11-28 17:43:11 +07:00
2026-11-27 15:00:15 +00:00
2026-11-26 10:54:45 -08:00
2026-11-28 02:07:36 -08:00
2026-11-26 10:32:58 +07:00
2026-11-26 00:14:58 -08:00
2026-11-27 23:08:29 +01:00
2026-11-26 10:06:58 +07:00
2026-11-28 02:50:31 -08:00
2026-11-28 11:47:50 +07:00
2026-11-28 11:48:06 +07:00
2026-11-28 23:59:52 +07:00
2026-11-24 22:31:29 +00:00
2026-11-26 10:23:09 +01:00
2026-11-27 03:40:00 +00:00
2026-11-25 01:55:58 +00:00
2026-11-26 10:20:42 +01:00
2026-11-27 18:12:31 -08:00
2026-11-26 07:59:30 -08:00
2026-11-27 23:07:33 +01:00
2026-11-27 23:09:26 +01:00
2026-11-28 11:33:31 +07:00
2026-11-26 08:27:09 -08:00
2026-11-26 10:32:46 +07:00
2026-11-26 20:03:19 +07:00
2026-11-26 08:24:57 -08:00
2026-11-27 09:40:29 +01:00
2026-11-27 01:36:30 -08:00
2026-11-27 17:31:35 -08:00
2026-11-27 17:31:35 -08:00
2026-11-25 01:40:04 +00:00
2026-11-25 19:44:12 +00:00
2026-11-26 20:38:07 -08:00
2026-11-25 19:19:07 -08:00
2026-11-26 17:31:23 -08:00
2026-11-25 19:19:07 -08:00
2026-11-25 19:37:14 -08:00
2026-11-24 22:31:46 +00:00
2026-11-27 18:40:42 -08:00
2026-11-26 10:18:16 +01:00
2026-11-25 20:55:50 -08:00
2026-11-28 01:39:11 -08:00
2026-11-27 18:40:42 -08:00
2026-11-26 10:32:14 +07:00
2026-11-25 01:32:48 +00:00
2026-11-26 10:05:20 +07:00
2026-11-28 11:34:37 +07:00
2026-11-26 08:31:21 -08:00
2026-11-27 17:16:59 +00:00
2026-11-26 10:18:16 +01:00
2026-11-25 00:04:24 +00:00
2026-11-26 21:57:01 -08:00
2026-11-28 02:09:39 -08:00
2026-11-28 11:42:29 +07:00
2026-11-27 16:22:11 -08:00
2026-11-26 10:28:26 +07:00
2026-11-28 08:11:25 -08:00
2026-11-24 22:32:03 +00:00
2026-11-26 10:22:15 +01:00
2026-11-24 22:31:09 +00:00
2026-11-24 22:31:29 +00:00
2026-11-26 12:18:38 -08:00
2026-11-26 10:07:34 +07:00
2026-11-27 12:32:02 +05:30
2026-11-26 10:19:40 +01:00
2026-11-27 01:01:58 +00:00
2026-11-27 06:09:54 +01:00
2026-11-28 05:35:36 -08:00
2026-11-28 23:12:57 +07:00
2026-11-27 16:18:46 +07:00
2026-11-28 05:30:54 -08:00
2026-11-27 17:47:46 -08:00
2026-11-28 23:11:01 +07:00
2026-11-26 10:12:54 -08:00
2026-11-26 09:38:03 -08:00
2026-11-26 09:51:24 +01:00
2026-11-26 00:01:17 -08:00
2026-11-26 10:22:31 +01:00
2026-11-26 12:18:38 -08:00
2026-11-26 16:56:53 -08:00
2026-11-26 10:18:31 +01:00
2026-11-27 14:15:24 +07:00
2026-11-25 09:05:18 +05:30
2026-11-26 10:23:51 -08:00
2026-11-26 11:03:37 +00:00
2026-11-26 07:59:37 -08:00
2026-11-28 09:42:49 -08:00
2026-11-27 23:06:31 +01:00
2026-11-28 02:33:21 -08:00
2026-11-25 20:32:11 -08:00
2026-11-25 20:22:00 -08:00
2026-11-27 23:08:01 +01:00
2026-11-27 03:31:12 +00:00
2026-11-27 23:07:04 +01:00
2026-11-28 23:11:27 +07:00
2026-11-27 16:15:09 +00:00
2026-11-27 03:31:12 +00:00
2026-11-28 23:10:24 +07:00
2026-11-28 23:11:14 +07:00
2026-11-27 15:00:15 +00:00
2026-11-25 14:45:46 -05:00
2026-11-28 23:10:37 +07:00
2026-11-27 18:42:27 -08:00
2026-11-28 05:35:38 -08:00
2026-11-27 14:05:08 +07:00
2026-11-27 23:07:33 +01:00
2026-11-24 22:31:29 +00:00
2026-11-26 20:09:37 +07:00
2026-11-25 14:06:50 -08:00
2026-11-27 22:59:15 +01:00
2026-11-28 05:21:40 -08:00
2026-11-27 12:32:02 +05:30