Mercurial > hg > mlmmj
changeset 518:f745db86c61c
free() -> myfree()
author | mmj |
---|---|
date | Mon, 03 Oct 2005 00:54:33 +1000 |
parents | ad761c84a780 |
children | a0970041be37 |
files | src/mlmmj-make-ml.sh.in src/prepstdreply.c |
diffstat | 2 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mlmmj-make-ml.sh.in Fri Sep 09 20:11:58 2005 +1000 +++ b/src/mlmmj-make-ml.sh.in Mon Oct 03 00:54:33 2005 +1000 @@ -5,6 +5,7 @@ VERSION="0.1" DEFAULTDIR="/var/spool/mlmmj" +ALIASFILE=/etc/aliases USAGE="mlmmj-make-ml "$VERSION" "$0" [OPTIONS] @@ -12,7 +13,7 @@ -h display this help text -L the name of the mailinglist -s your spool directory if not "$DEFAULTDIR" --a create the needed entrys in your /etc/aliases file +-a create the needed entrys in your $ALIASFILE file -z nuffn for now -c chown the spool dir" @@ -123,14 +124,14 @@ CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\"" if [ -n "$A_CREATE" ]; then - echo "I want to add the following to your /etc/aliases file:" + echo "I want to add the following to your $ALIASFILE file:" echo "$ALIAS" echo -n "is this ok? [y/N] : " read OKIDOKI case $OKIDOKI in y|Y) - echo "$ALIAS" >> /etc/aliases + echo "$ALIAS" >> $ALIASFILE ;; n|N) exit 0 @@ -140,7 +141,7 @@ esac else echo - echo "Don't forget to add this to /etc/aliases:" + echo "Don't forget to add this to $ALIASFILE:" echo "$ALIAS" fi
--- a/src/prepstdreply.c Fri Sep 09 20:11:58 2005 +1000 +++ b/src/prepstdreply.c Mon Oct 03 00:54:33 2005 +1000 @@ -38,6 +38,7 @@ #include "wrappers.h" #include "memory.h" #include "getlistaddr.h" +#include "mlmmj.h" char *substitute(const char *line, const char *listaddr, size_t datacount, char **data) @@ -181,7 +182,7 @@ if(replyto) { myreplyto = substitute(replyto, listaddr, tokencount, data); tmp = concatstr(3, "Reply-To: ", myreplyto, "\n"); - free(myreplyto); + myfree(myreplyto); myreplyto = tmp; } else myreplyto = NULL;