From 8bab67720573a18bf2d25f87c3d16268b27a0895 Mon Sep 17 00:00:00 2001 From: knj Date: Thu, 14 Jul 2022 15:32:03 +0200 Subject: [PATCH] set arg->ca_config_file to original string from cmdline was set to ALL CAPS VERSION of it before which breaks functionality for case-sensitive filesystems --- apps/encoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/encoder.c b/apps/encoder.c index ab9d29b3f8..d3e0ced273 100644 --- a/apps/encoder.c +++ b/apps/encoder.c @@ -1049,6 +1049,8 @@ static bool parseCmdlIVAS_enc( if ( i < argc - 4 ) { + strncpy( stmp, argv[i], sizeof( stmp ) ); + to_upper( argv[i] ); if ( strcmp( argv[i], "LO" ) == 0 ) { @@ -1060,7 +1062,7 @@ static bool parseCmdlIVAS_enc( } else { - arg->ca_config_file = argv[i]; + arg->ca_config_file = stmp; } i++; -- GitLab