Skip to content
Snippets Groups Projects
Commit 26e8e44e authored by Stephan Bosch's avatar Stephan Bosch Committed by Timo Sirainen
Browse files

lib-sieve: storage: file: Rename binpath to bin_path

parent 79b0c161
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ sieve_file_script_open(struct sieve_script *script,
container_of(storage, struct sieve_file_storage, storage);
pool_t pool = script->pool;
const char *filename, *name, *path;
const char *dirpath, *basename, *binpath, *binprefix;
const char *dirpath, *basename, *bin_path, *binprefix;
struct stat st, lnk_st;
bool success = TRUE;
int ret = 0;
......@@ -405,13 +405,13 @@ sieve_file_script_open(struct sieve_script *script,
}
if (*bpath == '\0') {
binpath = bfile;
bin_path = bfile;
binprefix = bprefix;
} else if (bpath[strlen(bpath)-1] == '/') {
binpath = t_strconcat(bpath, bfile, NULL);
bin_path = t_strconcat(bpath, bfile, NULL);
binprefix = t_strconcat(bpath, bprefix, NULL);
} else {
binpath = t_strconcat(bpath, "/", bfile, NULL);
bin_path = t_strconcat(bpath, "/", bfile, NULL);
binprefix = t_strconcat(bpath, "/", bprefix, NULL);
}
......@@ -420,7 +420,7 @@ sieve_file_script_open(struct sieve_script *script,
fscript->path = p_strdup(pool, path);
fscript->filename = p_strdup(pool, filename);
fscript->dirpath = p_strdup(pool, dirpath);
fscript->binpath = p_strdup(pool, binpath);
fscript->bin_path = p_strdup(pool, bin_path);
fscript->binprefix = p_strdup(pool, binprefix);
fscript->script.location = fscript->path;
......@@ -541,7 +541,7 @@ sieve_file_script_binary_load(struct sieve_script *script,
container_of(script, struct sieve_file_script, script);
struct sieve_instance *svinst = script->storage->svinst;
return sieve_binary_open(svinst, fscript->binpath, script,
return sieve_binary_open(svinst, fscript->bin_path, script,
sbin_r, error_code_r);
}
......@@ -559,7 +559,7 @@ sieve_file_script_binary_save(struct sieve_script *script,
return -1;
return sieve_binary_save(
sbin, fscript->binpath, update,
sbin, fscript->bin_path, update,
(fscript->st.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)),
error_code_r);
}
......
......@@ -130,7 +130,7 @@ struct sieve_file_script {
const char *path;
const char *dirpath;
const char *filename;
const char *binpath;
const char *bin_path;
const char *binprefix;
time_t prev_mtime;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.