diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-02-12 18:22:37 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2026-02-13 16:01:30 +0900 |
| commit | 13d14c6a9cbb7b9dca7e06b8ccd10bf4c47520bb (patch) | |
| tree | 5ded7e185dd5a16cba25f998911f5337fb17a700 | |
| parent | 74c066a711972ba0927d980ce0010ec68c77e74e (diff) | |
Freeze `File.ftype` results
It is unlikely to modify these result strings.
| -rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2412,7 +2412,7 @@ rb_file_ftype(mode_t mode) t = "unknown"; } - return rb_usascii_str_new2(t); + return rb_fstring_cstr(t); } /* |
