From 561aa3ff5b51269b5389b3bbed6da7aa93c5306e Mon Sep 17 00:00:00 2001 From: Evgeniy Kozhuhovskiy Date: Fri, 16 Sep 2005 06:41:01 +0000 Subject: [PATCH] added recieved_to_lower option --- examples/bforce.conf | 6 ++++++ source/bforce/conf_proc.c | 3 ++- source/bforce/prot_common.c | 2 +- source/include/confread.h | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/bforce.conf b/examples/bforce.conf index fb2e3f8..fff4798 100644 --- a/examples/bforce.conf +++ b/examples/bforce.conf @@ -569,4 +569,10 @@ nomail_flag /etc/nomail # run_before_session /usr/local/bin/call_inet.sh +# +# convert names of recieved files to lower case +# (yes/no) +# +recieved_to_lower yes + # That's all! diff --git a/source/bforce/conf_proc.c b/source/bforce/conf_proc.c index 549793c..3fa4d44 100644 --- a/source/bforce/conf_proc.c +++ b/source/bforce/conf_proc.c @@ -166,7 +166,8 @@ s_conf_entry bforce_config[BFORCE_NUMBER_OF_KEYWORDS+1] = { CONF_KEY(zmodem_start_block_size, CT_NUMBER), CONF_KEY(zmodem_tx_window, CT_NUMBER), CONF_KEY(nomail_flag, CT_STRING), - CONF_KEY(bind_ip, CT_STRING), + CONF_KEY(bind_ip, CT_STRING), + CONF_KEY(recieved_to_lower, CT_BOOLEAN), #ifdef USE_SYSLOG CONF_KEY(syslog_facility, CT_NUMBER), #endif diff --git a/source/bforce/prot_common.c b/source/bforce/prot_common.c index 8347d59..cf7f3ca 100644 --- a/source/bforce/prot_common.c +++ b/source/bforce/prot_common.c @@ -702,7 +702,7 @@ int p_rx_fopen(s_protinfo *pi, char *fn, size_t sz, time_t tm, mode_t mode) /* * Upper case file names convert to lower case. */ - if( string_isupper(pi->recv->local_name) ) + if( (string_isupper(pi->recv->local_name)) && conf_boolean(cf_recieved_to_lower)) string_tolower(pi->recv->local_name); if( strcmp(pi->recv->local_name, pi->recv->net_name) ) diff --git a/source/include/confread.h b/source/include/confread.h index 7ababb7..a10ea7d 100644 --- a/source/include/confread.h +++ b/source/include/confread.h @@ -261,6 +261,7 @@ typedef enum { cf_zmodem_tx_window, cf_nomail_flag, cf_bind_ip, + cf_recieved_to_lower, #ifdef USE_SYSLOG cf_syslog_facility, #endif