From 4dbfd9a0f48aa3f00d626008bd0094cf38800ab8 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Fri, 3 Apr 2009 16:12:38 +0200 Subject: [PATCH 1/3] =?UTF-8?q?sonderfall=20f=FCr=20y0shi..=20basedir=20ex?= =?UTF-8?q?istiert=20bereits,=20subdirs=20m=FCssen=20trotzdem=20angelegt?= =?UTF-8?q?=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/install.sh b/install.sh index 19dc788..04861b1 100755 --- a/install.sh +++ b/install.sh @@ -1,18 +1,20 @@ #!/bin/sh +# # new age sh (SUSv2 etc) are supposed to handle our syntax # but if that's not true, try a bash or ksh here. # -# psyced installation script -# $Id: install.sh,v 1.165 2008/10/16 13:07:13 lynx Exp $ -# -# original version by oswald!osw@ld.pages.de on IRCnet, 22aug00 -# heavy improvements by heldensaga and psyc://psyced.org/~lynX -# switched from function foo to foo() syntax as suggested by cebewee -# # we could also use a strategy for finding the best bash or ksh # on this system and re-execing ourselves because an old bourne # shell will not be able to deal with this script completely +####### psyced installation script ####### +# +# original version 2000-08-22 by Kai 'Oswald' Seidler (oswaldism.de) +# heavy improvements by heldensaga and psyc://psyced.org/~lynX +# switched from function foo to foo() syntax as suggested by cebewee +# +####### + # Use 'ldmud' here if you want to use an ldmud rather than a psyclpc' #driver="ldmud" #zip="gz" @@ -1077,11 +1079,7 @@ then echo "Creating $BASE_DIR..." if mkdir -m $BASE_PERM -p $BASE_DIR 2> /dev/null then - mkdir -m $BASE_PERM -p $LOG_DIR 2> /dev/null - mkdir -m $BASE_PERM -p $LOG_DIR/place 2> /dev/null - mkdir -m $BASE_PERM -p $DATA_DIR 2> /dev/null - mkdir -m $BASE_PERM -p $DATA_DIR/person 2> /dev/null - mkdir -m $BASE_PERM -p $DATA_DIR/place 2> /dev/null + ; else if test "x$userid" = "xroot" then @@ -1122,7 +1120,16 @@ else $exit fi +# we need to be completely sure these directories exist, +# so we just go ahead with brute force :) +# +mkdir -m $BASE_PERM -p $LOG_DIR 2> /dev/null +mkdir -m $BASE_PERM -p $LOG_DIR/place 2> /dev/null +mkdir -m $BASE_PERM -p $DATA_DIR 2> /dev/null +mkdir -m $BASE_PERM -p $DATA_DIR/person 2> /dev/null +mkdir -m $BASE_PERM -p $DATA_DIR/place 2> /dev/null mkdir -p $ARCH_DIR 2>/dev/null + if test -d $ARCH_DIR then if test ! -w $ARCH_DIR @@ -1208,11 +1215,10 @@ EOF # # TODO: don't say this if either $driver or erq failed to compile! # echo "${hi}COMPILATION DONE${lo}" echo "" - fi - # i have a feeling i should be using ARCH_DIR here - if test -d bin-$arch - then + # i have a feeling i should be using ARCH_DIR here + if test -d bin-$arch + then cd bin-$arch for i in * do @@ -1224,9 +1230,10 @@ EOF done cd .. - else + else echo "${hi}WARNING:${lo} Couldn't install architecture dependent binaries because I can't find them!" echo "" + fi fi else echo "Hmm.. couldn't create $ARCH_DIR! Aborting." From c8ff29e4d277889e1f90414b0f0aa7c0da2fd795 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 5 Apr 2009 12:57:11 +0200 Subject: [PATCH 2/3] oops, the vDel was still in there --- world/net/person.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/world/net/person.c b/world/net/person.c index 959f23c..1aca33f 100644 --- a/world/net/person.c +++ b/world/net/person.c @@ -2555,10 +2555,9 @@ quit(immediate, variant) { P3(("person:QUIT(%O,%O) in %O\n", immediate,variant, ME)) // keeping services running while logging out should be possible.. but //linkDel(0); - if (v("locations")) { + if (sizeof(v("locations"))) { + // the if should only trigger at first pass linkCleanUp(); - // so the if should only trigger at first pass - vDel("locations"); } if (immediate == 1 || (immediate && find_call_out(#'quit) != -1)) { rc = save(); From d8afc4e598ba44ebc075c0385f44503137e59f0f Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Wed, 8 Apr 2009 09:52:09 +0200 Subject: [PATCH 3/3] fix for _flag_enable_unauthenticated_message_private, thx tg --- world/net/person.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/world/net/person.c b/world/net/person.c index 1aca33f..9647889 100644 --- a/world/net/person.c +++ b/world/net/person.c @@ -1638,8 +1638,12 @@ case "_notice_invitation": case "_message_private_question": case "_message_private": // same filtering code as couple lines above - if (( IS_NEWBIE || !itsme && FILTERED(source)) && - (!profile || profile[PPL_NOTIFY] <= PPL_NOTIFY_PENDING)) { + if (( +#ifndef _flag_enable_unauthenticated_message_private + IS_NEWBIE || +#endif + (!itsme && FILTERED(source)) && + (!profile || profile[PPL_NOTIFY] <= PPL_NOTIFY_PENDING))) { PT(("_failure_filter_strangers to %O from %O\n", source, ME)) sendmsg(source, "_failure_filter_strangers", 0, ([ "_nick" : MYNICK ]) );