]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs-sis: Don't overwrite error already set by fs_sis_path_parse()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 29 Nov 2019 13:58:59 +0000 (15:58 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 11 Dec 2019 10:12:30 +0000 (10:12 +0000)
src/lib-fs/fs-sis.c

index 6a72e3df533839c388fa041522a8bcb157258de6..3b072232227cb9443ff0f4da6c172410278bbfa8 100644 (file)
@@ -97,10 +97,8 @@ fs_sis_file_init(struct fs_file *_file, const char *path,
                return;
        }
 
-       if (fs_sis_path_parse(_file, path, &dir, &hash) < 0) {
-               fs_set_error(_file->fs, "Invalid path");
+       if (fs_sis_path_parse(_file, path, &dir, &hash) < 0)
                return;
-       }
 
        /* if hashes/<hash> already exists, open it */
        file->hash_path = i_strdup_printf("%s/"HASH_DIR_NAME"/%s", dir, hash);