Mitchell Hashimoto c56dde58b0 core: don't try opening config files that are anything but files (#3046)
In a [Discord
thread](https://discord.com/channels/1005603569187160125/1319727495473397791)
someone was having problems running Ghostty because they had
accidentally created a directory called `~/.config/ghostty/config`.
Instead of erroring out Ghostty would hang trying to "read" the
directory. Crashes can also happen if the argument to `--config-file` on
the CLI or a recursively loaded config file.

This patch prevents those hangs or crashes by refusing to read anything
but a plain file (symbolic links to plain files continue to work as
well).
2024-12-22 19:07:53 -08:00
..
2024-11-21 10:41:48 -08:00
2023-09-11 09:17:29 -07:00
2024-03-13 09:14:12 -07:00
2023-11-24 10:26:55 -08:00
2024-11-19 10:17:03 -08:00
2024-11-22 22:57:45 +13:00
2024-11-18 16:11:44 -06:00
2023-09-23 22:46:16 -07:00