]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
free() -> myfree()
authormmj <none@none>
Sun, 2 Oct 2005 14:54:33 +0000 (00:54 +1000)
committermmj <none@none>
Sun, 2 Oct 2005 14:54:33 +0000 (00:54 +1000)
src/mlmmj-make-ml.sh.in
src/prepstdreply.c

index 7220ba361c6e147bffe583e3efdcac6320c33682..00e8d4648c533e88a9688280ce97dc4bdd5ee7e2 100755 (executable)
@@ -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 @@ USAGE="mlmmj-make-ml "$VERSION"
 -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 @@ ALIAS="$LISTNAME:  \"|$MLMMJRECIEVE -L $SPOOLDIR/$LISTNAME/\""
 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 @@ if [ -n "$A_CREATE" ]; then
        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
 
index c438fa0dd5fc90185806bf6871728b3d577cb682..0c47247153fe2c2b15242e07c11a58eae732c9ef 100644 (file)
@@ -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 @@ char *prepstdreply(const char *listdir, const char *filename, const char *from,
        if(replyto) {
                myreplyto = substitute(replyto, listaddr, tokencount, data);
                tmp = concatstr(3, "Reply-To: ", myreplyto, "\n");
-               free(myreplyto);
+               myfree(myreplyto);
                myreplyto = tmp;
        } else
                myreplyto = NULL;