]> Kevux Git Server - fll/commitdiff
Regression: FSS Basic Read default should be Content.
authorKevin Day <thekevinday@gmail.com>
Sun, 2 May 2021 23:47:12 +0000 (18:47 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 2 May 2021 23:47:12 +0000 (18:47 -0500)
When redesigning the code structure, I forgot to ensure that Content is the default if neither --object nor --content is specified.

level_3/fss_basic_read/c/private-fss_basic_read.c

index 52a0407c5a9d8971e9aa46252bea69219c8478d0..cc698f0fca07d416f7678600ee1e8bfbd3e847fd 100644 (file)
@@ -533,6 +533,11 @@ extern "C" {
       data->option |= fss_basic_read_data_option_trim;
     }
 
+    // Default to content if neither Object nor Content is explicitly requested.
+    if (!(data->option & (fss_basic_read_data_option_content | fss_basic_read_data_option_object))) {
+      data->option |= fss_basic_read_data_option_content;
+    }
+
     return F_none;
   }
 #endif // _di_fss_basic_read_process_option_