summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Fujimura (fd0) <booleanlabel@gmail.com>2025-11-30 12:01:44 +0900
committerSatoshi Tagomori <tagomoris@gmail.com>2025-11-30 21:03:00 +0900
commit9aa9cf8ea02f9860d735103b0e3ccfde62c68f95 (patch)
tree3cbb22d22c88df33e1569ca9ed0642b5b2445f85
parentd7cfd275f881bbd29d95dfdba585f055dd89ba44 (diff)
Fix switch fall-through in copy_ext_file_error
-rw-r--r--box.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/box.c b/box.c
index 42ee967c50..81f285b321 100644
--- a/box.c
+++ b/box.c
@@ -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);
}