diff options
| author | Daisuke Fujimura (fd0) <booleanlabel@gmail.com> | 2025-11-30 12:01:44 +0900 |
|---|---|---|
| committer | Satoshi Tagomori <tagomoris@gmail.com> | 2025-11-30 21:03:00 +0900 |
| commit | 9aa9cf8ea02f9860d735103b0e3ccfde62c68f95 (patch) | |
| tree | 3cbb22d22c88df33e1569ca9ed0642b5b2445f85 | |
| parent | d7cfd275f881bbd29d95dfdba585f055dd89ba44 (diff) | |
Fix switch fall-through in copy_ext_file_error
| -rw-r--r-- | box.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -514,16 +514,22 @@ copy_ext_file_error(char *message, size_t size, int copy_retvalue, const char *s switch (copy_retvalue) { case 1: snprintf(message, size, "can't open the extension path: %s", src_path); + break; case 2: snprintf(message, size, "can't open the file to write: %s", dst_path); + break; case 3: snprintf(message, size, "failed to read the extension path: %s", src_path); + break; case 4: snprintf(message, size, "failed to write the extension path: %s", dst_path); + break; case 5: snprintf(message, size, "failed to stat the extension path to copy permissions: %s", src_path); + break; case 6: snprintf(message, size, "failed to set permissions to the copied extension path: %s", dst_path); + break; default: rb_bug("unknown return value of copy_ext_file: %d", copy_retvalue); } |
