From 5181fd8587e944739d76bbe5b197c00d5979110a Mon Sep 17 00:00:00 2001 From: b Date: Mon, 26 Sep 2022 22:05:33 +0000 Subject: [PATCH] fixed parameters to awk in view --- makefile | 3 ++- makefile.1.mak | 3 ++- ottmirror.1.conf | 3 +++ settings.txt | 4 ++++ view.1.cpp | 4 ++-- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index d666506..31e5378 100644 --- a/makefile +++ b/makefile @@ -20,6 +20,7 @@ # along with OTT mirror. If not, see . + CC =g++ CF =-g -Wall -Wno-format-truncation L_CGI=-lcgi @@ -244,7 +245,7 @@ mktree: $(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR) cp_bin: $(BIN) setuid | mktree - $(CP) $(BIN) $(BIN_PATH) + $(CP) -p $(BIN) $(BIN_PATH) cp_conf: ottmirror.conf $(CP) ottmirror.conf $(CONF) diff --git a/makefile.1.mak b/makefile.1.mak index 07c1a9f..4a48039 100644 --- a/makefile.1.mak +++ b/makefile.1.mak @@ -20,6 +20,7 @@ # along with OTT mirror. If not, see . + ###MAKE_CC: CC=g++ ###MAKE_CF: CF=-g -Wall ###MAKE_L_CGI: L_CGI=-lcgi @@ -244,7 +245,7 @@ mktree: $(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR) cp_bin: $(BIN) setuid | mktree - $(CP) $(BIN) $(BIN_PATH) + $(CP) -p $(BIN) $(BIN_PATH) cp_conf: ottmirror.conf $(CP) ottmirror.conf $(CONF) diff --git a/ottmirror.1.conf b/ottmirror.1.conf index 9cdc5ab..685d359 100644 --- a/ottmirror.1.conf +++ b/ottmirror.1.conf @@ -8,6 +8,9 @@ Alias /ott/log ###CONF_log; Allow from all + + Options MultiViews + ScriptAlias /ott/index ###CONF_index; ScriptAlias /ott/mpview ###CONF_mpview; diff --git a/settings.txt b/settings.txt index d244159..baece28 100644 --- a/settings.txt +++ b/settings.txt @@ -147,6 +147,8 @@ CONF_posted = $_bin_posted_path CONF_redirect = $_bin_redirect_path CONF_update = $_bin_update_path CONF_view = $_bin_view_path +#CONF_att = $_www_att_path +CONF_www = $www_path AWK_default_subject_encoded= \t@_AWK_DEFINE_STR(default_subject_encoded,$_default_subject_encoded) @@ -231,6 +233,7 @@ C_IND_PATH = @_C_DEFINE_STR(IND_PATH, $_www_ind_path) C_IND_PATH_3 = @_C_DEFINE_STR(IND_PATH, $_www_ind_path_3) C_IND_PATH_3_ = @_C_DEFINE_STR(IND_PATH_3, $_www_ind_path_3) C_INF_PATH = @_C_DEFINE_STR(INF_PATH, $_www_inf_path_) +C_INF_PATH_E = @_C_DEFINE_STR(INF_PATH, otterinf=$_www_inf_path_) C_INFO_PATH = @_C_DEFINE_STR(INFO_PATH, $_www_info_path) C_LAST_PAGE = @_C_DEFINE_STR(LAST_PAGE, $_www_last_path) C_LIST_PATH = @_C_DEFINE_STR(LIST_PATH, $_www_list_path_) @@ -239,6 +242,7 @@ C_NP_TOP_PATH = @_C_DEFINE_STR(NP_TOP_PATH, $_www_np_top_path) C_NP_END_PATH = @_C_DEFINE_STR(NP_END_PATH, $_www_np_end_path) C_POST_PATH = @_C_DEFINE_STR(POST_PATH, $_www_post_path) C_SIG_PATH = @_C_DEFINE_STR(SIG_PATH, $_www_sig_path_) +C_SIG_PATH_E = @_C_DEFINE_STR(SIG_PATH, sig=$_www_sig_path_) C_TOP_PATH = @_C_DEFINE_STR(TOP_PATH, $_www_top_path) C_UP_PATH = @_C_DEFINE_STR(UP_PATH, $_www_up_path_) diff --git a/view.1.cpp b/view.1.cpp index 492d4bc..6f860e7 100644 --- a/view.1.cpp +++ b/view.1.cpp @@ -33,8 +33,8 @@ // ###C_NP_END_PATH: #define NP_END_PATH "/eizm/www/time/ott/np/end" // ###C_UP_PATH: #define UP_PATH "/eizm/www/time/ott/np/" // ###C_LIST_PATH: #define LIST_PATH "/eizm/www/time/ott/postlist/" -// ###C_SIG_PATH: #define SIG_PATH "sig=/eizm/www/time/ott/sig/" -// ###C_INF_PATH: #define INF_PATH "otterinf=/eizm/www/time/ott/otterinf/" +// ###C_SIG_PATH_E: #define SIG_PATH "sig=/eizm/www/time/ott/sig/" +// ###C_INF_PATH_E: #define INF_PATH "otterinf=/eizm/www/time/ott/otterinf/" // ###C_LAST_PAGE: #define LAST_PAGE "/eizm/www/time/ott/np/last" // ###C_MLAST_PATH: #define MLAST_PATH "/eizm/mem/ottmirror/mlist/last" -- 2.30.2