From e3ec8cc9364088b6360c11d28d17722f50eca9b4 Mon Sep 17 00:00:00 2001 From: Henner Eisen Date: Fri, 8 Oct 1999 16:25:37 +0000 Subject: [PATCH] more integration in isdn4k-utils config/build and some small fixes --- NEWS | 5 +++++ eurofile/examples/eft.conf.in | 9 +++++++++ eurofile/scripts/eftd.sh.in | 2 +- eurofile/src/eftd/eftd.c | 6 +++--- scripts/config.in | 14 ++------------ 5 files changed, 20 insertions(+), 16 deletions(-) diff --git a/NEWS b/NEWS index 7b094ed4..52d07596 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,13 @@ Recent changes made to the isdn4k-utils archive are listed here, most recent on top. ------------------ +1999/10/08 he (Henner Eisen New FAQ is now moved from FAQ2 to FAQ. + 1999/08/18 armin (Armin Schindler ) eiconctrl - XLOG retrieve function for all supported active cards added. diff --git a/eurofile/examples/eft.conf.in b/eurofile/examples/eft.conf.in index 92f5e7e8..d129e817 100644 --- a/eurofile/examples/eft.conf.in +++ b/eurofile/examples/eft.conf.in @@ -30,6 +30,15 @@ EFT_CLIENT_USERID=xxxx # define this if you want x25trace debugging output # EFTD_X25TRACE=1 # +# If this is set then you can test eurofile client and server locallay +# on top of the isdnloop HL driver (no external isdn connection +# required). To do so, just type `eftp -x 1 -u USER' (where USER is +# your login name) +# +# EFTD_WITH_LOOP=y +# # other variables which are set in eftd.sh before this file is # included, might also be (re-)set here # + + diff --git a/eurofile/scripts/eftd.sh.in b/eurofile/scripts/eftd.sh.in index fff0db66..f466f2fb 100644 --- a/eurofile/scripts/eftd.sh.in +++ b/eurofile/scripts/eftd.sh.in @@ -48,7 +48,7 @@ ISDNCTRL=@ISDNCTRL@ LOOPCTRL=@LOOPCTRL@ INSMOD=@INSMOD@ EFTD_BIN_SRC=@EFT_TOPDIR@/src/eftd/eftd -EFTD_BIN_INSTALL=@SBINDIR/eftd +EFTD_BIN_INSTALL=@SBINDIR@/eftd if [ -z "$EFTD_SH_SRC" ]; then EFTD_BIN=$EFTD_BIN_INSTALL diff --git a/eurofile/src/eftd/eftd.c b/eurofile/src/eftd/eftd.c index d671a525..5dacca34 100644 --- a/eurofile/src/eftd/eftd.c +++ b/eurofile/src/eftd/eftd.c @@ -110,11 +110,11 @@ static int eft_check_user( struct eft *eft, char* user, char* pass, char *isdn_n printf("user check: ruid=%d, euid=%d\n",getuid(),geteuid()); /* * Be paranoid about buggy authentification functions that claim - * success but are still runnung as root. + * success but are still running with super user priviliges. */ if (verified && !geteuid()){ tdu_printf(TDU_LOG_ERR, "eftd: BUG in authentification procedure.\n (claims success, but process runs still with root priviliges).\nRejecting login for security reasons.\n"); - /* verified=0; */ + verified=0; } if( ! verified ){ @@ -495,7 +495,7 @@ int main(int argc, char** argv) tdu_stderr_mask |= level2mask(dlevel); tdu_logfile_mask |= level2mask(llevel); /* FIXME: make default location an autoconf option*/ - if( ! logfile_name ) logfile_name = "/var/log/eftd.log"; + if( ! logfile_name ) logfile_name = "/var/log" "/eftd.log"; if(llevel) tdu_open_log(logfile_name); /* tdu_printf(TDU_LOG_DBG, "LogBook level %d, mask %d, Stderr level %d, mask %d\n",llevel,tdu_logfile_mask,dlevel,tdu_stderr_mask); */ if( tdu_stderr_mask & TDU_LOG_ISDNLOG ){ diff --git a/scripts/config.in b/scripts/config.in index b97ad097..4d890cdc 100644 --- a/scripts/config.in +++ b/scripts/config.in @@ -118,18 +118,8 @@ if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then bool 'rcapid' CONFIG_RCAPID fi if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then -# we need to check for the presence of the eurofile subdirectory -# as long as it is listed in the distexclude file - if [ -d eurofile ]; then - bool 'eurofile' CONFIG_EUROFILE -# The source command fails and causes an error in the -# configure script when eurofile directory is not -# present -- even inside this if branch. -# Thus, it is left commented out until eurofile is -# removed from the distexclude file. -# Uncomment the next line for trying the eurofile sub menu -# source eurofile/.Config.in - fi + bool 'eurofile' CONFIG_EUROFILE + source eurofile/.Config.in fi endmenu mainmenu_option nextcomment