]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-path-util - Normalize cwd
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Nov 2025 08:52:42 +0000 (10:52 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Nov 2025 08:52:42 +0000 (10:52 +0200)
Avoids unnecessary failure later on.

src/lib/test-path-util.c

index 8cec0107a1b9eb4fd22745df30b622411fc11f95..4e55f071854d1b5802558348910a834679c904f2 100644 (file)
@@ -243,7 +243,10 @@ static void test_cleanup(void)
 
 static void test_path_util_init(void)
 {
+       const char *error;
        cwd = test_dir_get();
+       if (t_normpath(cwd, &cwd, &error) < 0)
+               i_fatal("t_normpath(%s) failed: %s", cwd, error);
        tmpdir = t_strconcat(cwd, "/"TEMP_DIRNAME, NULL);
 
        test_cleanup();