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

lib-sieve: storage: file: Rename binprefix to bin_prefix

parent 26e8e44e
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, ...@@ -307,7 +307,7 @@ sieve_file_script_open(struct sieve_script *script,
container_of(storage, struct sieve_file_storage, storage); container_of(storage, struct sieve_file_storage, storage);
pool_t pool = script->pool; pool_t pool = script->pool;
const char *filename, *name, *path; const char *filename, *name, *path;
const char *dirpath, *basename, *bin_path, *binprefix; const char *dirpath, *basename, *bin_path, *bin_prefix;
struct stat st, lnk_st; struct stat st, lnk_st;
bool success = TRUE; bool success = TRUE;
int ret = 0; int ret = 0;
...@@ -406,13 +406,13 @@ sieve_file_script_open(struct sieve_script *script, ...@@ -406,13 +406,13 @@ sieve_file_script_open(struct sieve_script *script,
if (*bpath == '\0') { if (*bpath == '\0') {
bin_path = bfile; bin_path = bfile;
binprefix = bprefix; bin_prefix = bprefix;
} else if (bpath[strlen(bpath)-1] == '/') { } else if (bpath[strlen(bpath)-1] == '/') {
bin_path = t_strconcat(bpath, bfile, NULL); bin_path = t_strconcat(bpath, bfile, NULL);
binprefix = t_strconcat(bpath, bprefix, NULL); bin_prefix = t_strconcat(bpath, bprefix, NULL);
} else { } else {
bin_path = t_strconcat(bpath, "/", bfile, NULL); bin_path = t_strconcat(bpath, "/", bfile, NULL);
binprefix = t_strconcat(bpath, "/", bprefix, NULL); bin_prefix = t_strconcat(bpath, "/", bprefix, NULL);
} }
fscript->st = st; fscript->st = st;
...@@ -421,7 +421,7 @@ sieve_file_script_open(struct sieve_script *script, ...@@ -421,7 +421,7 @@ sieve_file_script_open(struct sieve_script *script,
fscript->filename = p_strdup(pool, filename); fscript->filename = p_strdup(pool, filename);
fscript->dirpath = p_strdup(pool, dirpath); fscript->dirpath = p_strdup(pool, dirpath);
fscript->bin_path = p_strdup(pool, bin_path); fscript->bin_path = p_strdup(pool, bin_path);
fscript->binprefix = p_strdup(pool, binprefix); fscript->bin_prefix = p_strdup(pool, bin_prefix);
fscript->script.location = fscript->path; fscript->script.location = fscript->path;
...@@ -570,7 +570,7 @@ sieve_file_script_binary_get_prefix(struct sieve_script *script) ...@@ -570,7 +570,7 @@ sieve_file_script_binary_get_prefix(struct sieve_script *script)
struct sieve_file_script *fscript = struct sieve_file_script *fscript =
container_of(script, struct sieve_file_script, script); container_of(script, struct sieve_file_script, script);
return fscript->binprefix; return fscript->bin_prefix;
} }
/* /*
......
...@@ -131,7 +131,7 @@ struct sieve_file_script { ...@@ -131,7 +131,7 @@ struct sieve_file_script {
const char *dirpath; const char *dirpath;
const char *filename; const char *filename;
const char *bin_path; const char *bin_path;
const char *binprefix; const char *bin_prefix;
time_t prev_mtime; 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.