randomconfig fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 26 Jun 2018 13:35:17 +0000 (15:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 26 Jun 2018 13:35:17 +0000 (15:35 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/bb_archive.h
shell/hush.c
util-linux/mkfs_vfat.c

index 2ee30f794f55e51c0320e38657e65e532956d5af..d2022336b19be13214ef2eba59efd9be39665908 100644 (file)
@@ -116,10 +116,10 @@ typedef struct archive_handle_t {
 #if ENABLE_FEATURE_AR_CREATE
        const char *ar__name;
        struct archive_handle_t *ar__out;
-# if ENABLE_FEATURE_AR_LONG_FILENAMES
+#endif
+#if ENABLE_FEATURE_AR_LONG_FILENAMES
        char *ar__long_names;
        unsigned ar__long_name_size;
-# endif
 #endif
 } archive_handle_t;
 /* bits in ah_flags */
index c7770017502108f8f9f6b847e89c3dd8b17a09ac..0b36dad805b00b95a10b4c85b29f66e3f5e8aa29 100644 (file)
@@ -4577,7 +4577,9 @@ static int add_till_closing_bracket(o_string *dest, struct in_str *input, unsign
 # endif
        end_ch &= (DOUBLE_CLOSE_CHAR_FLAG - 1);
 
+#if ENABLE_HUSH_INTERACTIVE
        G.promptmode = 1; /* PS2 */
+#endif
        debug_printf_prompt("%s promptmode=%d\n", __func__, G.promptmode);
 
        while (1) {
index 26a919536dc8212fff4861f02b3a0ca6f5762265..92f0e3b1a02d3c2e2e8aab1963b4b460f2dfc781 100644 (file)
@@ -522,7 +522,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
                //STORE_LE(boot_blk->reserved2[3], 0,0,0);
                STORE_LE(boot_blk->vi.ext_boot_sign, 0x29);
                STORE_LE(boot_blk->vi.volume_id32, volume_id);
-               strncpy(boot_blk->vi.fs_type, "FAT32   ", sizeof(boot_blk->vi.fs_type));
+               memcpy(boot_blk->vi.fs_type, "FAT32   ", sizeof(boot_blk->vi.fs_type));
                strncpy(boot_blk->vi.volume_label, volume_label, sizeof(boot_blk->vi.volume_label));
                memcpy(boot_blk->boot_code, boot_code, sizeof(boot_code));
                STORE_LE(boot_blk->boot_sign, BOOT_SIGN);