summaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-25 17:44:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-25 17:44:37 +0000
commit834fb159a3f14ede682f23986f10bd9b3b7cfcac (patch)
treef7487789a7fa9019ed77d15f99db6f0d7b0f5e9c /src/cfg_utils.c
parent928d072ceca774b81c390675b24a44c1498f8eac (diff)
downloadrspamd-834fb159a3f14ede682f23986f10bd9b3b7cfcac.tar.gz
rspamd-834fb159a3f14ede682f23986f10bd9b3b7cfcac.zip
Fix reload of rspamd.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index d6c2b3fc9..8e57ea1c9 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -175,34 +175,6 @@ parse_bind_line (struct config_file *cfg, struct worker_conf *cf, const gchar *s
cnf->bind_port = DEFAULT_BIND_PORT;
if (str[0] == '/' || str[0] == '.') {
-#ifdef HAVE_DIRNAME
- /* Try to check path of bind credit */
- struct stat st;
- gint fd;
- gchar *copy = memory_pool_strdup (cfg->cfg_pool, str);
- if (stat (copy, &st) == -1) {
- if (errno == ENOENT) {
- if ((fd = open (str, O_RDWR | O_TRUNC | O_CREAT, S_IWUSR | S_IRUSR)) == -1) {
- msg_err ("cannot open path %s for making socket, %s", str, strerror (errno));
- return FALSE;
- }
- else {
- close (fd);
- unlink (str);
- }
- }
- else {
- msg_err ("cannot stat path %s for making socket, %s", str, strerror (errno));
- return 0;
- }
- }
- else {
- if (unlink (str) == -1) {
- msg_err ("cannot remove path %s for making socket, %s", str, strerror (errno));
- return 0;
- }
- }
-#endif
cnf->bind_host = memory_pool_strdup (cfg->cfg_pool, str);
cnf->is_unix = TRUE;
LL_PREPEND (cf->bind_conf, cnf);