aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 16:43:01 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 16:43:01 +0300
commit3d6020ef1ed601e1f2db2a90f7b64d1a634db171 (patch)
treeaeb199db662a4a0ceece072dab997b037181704e /src/cfg_utils.c
parent03490c09f41a52e59d5375c6b83872b725c96943 (diff)
downloadrspamd-3d6020ef1ed601e1f2db2a90f7b64d1a634db171.tar.gz
rspamd-3d6020ef1ed601e1f2db2a90f7b64d1a634db171.zip
* Remove %m from logging it seems to be unsupported by FreeBSD printf version
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index e90fe11cb..7efb9390d 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -133,7 +133,7 @@ parse_bind_line (struct config_file *cf, char *str, enum rspamd_cred_type type)
if (stat (copy, &st) == -1) {
if (errno == ENOENT) {
if ((fd = open (cur_tok, O_RDWR | O_TRUNC | O_CREAT, S_IWUSR | S_IRUSR)) == -1) {
- yyerror ("parse_bind_line: cannot open path %s for making socket, %m", cur_tok);
+ yyerror ("parse_bind_line: cannot open path %s for making socket, %s", cur_tok, strerror (errno));
return 0;
}
else {
@@ -142,13 +142,13 @@ parse_bind_line (struct config_file *cf, char *str, enum rspamd_cred_type type)
}
}
else {
- yyerror ("parse_bind_line: cannot stat path %s for making socket, %m", cur_tok);
+ yyerror ("parse_bind_line: cannot stat path %s for making socket, %s", cur_tok, strerror (errno));
return 0;
}
}
else {
if (unlink (cur_tok) == -1) {
- yyerror ("parse_bind_line: cannot remove path %s for making socket, %m", cur_tok);
+ yyerror ("parse_bind_line: cannot remove path %s for making socket, %s", cur_tok, strerror (errno));
return 0;
}
}