Skip to content

Commit

Permalink
bug fix in mailinglist.c
Browse files Browse the repository at this point in the history
It was preventing the creation of the m/l and the correct display of the subcribers list
  • Loading branch information
sagredo-dev committed Jun 16, 2024
1 parent 4242fa1 commit 3c8e5f5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mailinglist.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void ezmlm_make (int newlist)
char *tmpstr;
char loop_ch[64];
int loop;

/* Initialize listopt to be a string of the characters A-Z, with each one
* set to the correct case (e.g., A or a) to match the expected behavior
* of not checking any checkboxes. Leave other letters blank.
Expand Down Expand Up @@ -530,10 +530,10 @@ void ezmlm_make (int newlist)
pid=fork();
if (pid==0) {
sprintf(TmpBuf1, "%s/ezmlm-make", EZMLMDIR);
sprintf(TmpBuf, "%s/%s", RealDir, ActionUser);
sprintf(TmpBuf, "%s/%s", RealDir, ActionUser);
sprintf(TmpBuf3, "%s/.qmail-%s", RealDir, dotqmail_name);

arguments[argc++]=TmpBuf2;
arguments[argc++]=TmpBuf;
arguments[argc++]=TmpBuf3;
arguments[argc++]=ActionUser;
arguments[argc++]=Domain;
Expand Down Expand Up @@ -663,11 +663,11 @@ void show_list_group_now(int mod)
sprintf(TmpBuf1, "%s/ezmlm-list", EZMLMDIR);
sprintf(TmpBuf, "%s/%s", RealDir, ActionUser);
if(mod == GROUP_MODERATOR) {
execl(TmpBuf1, "ezmlm-list", TmpBuf2, "mod", (char *)NULL);
execl(TmpBuf1, "ezmlm-list", TmpBuf, "mod", (char *)NULL);
} else if(mod == GROUP_DIGEST) {
execl(TmpBuf1, "ezmlm-list", TmpBuf2, "digest", (char *)NULL);
execl(TmpBuf1, "ezmlm-list", TmpBuf, "digest", (char *)NULL);
} else {
execl(TmpBuf1, "ezmlm-list", TmpBuf2, (char *)NULL);
execl(TmpBuf1, "ezmlm-list", TmpBuf, (char *)NULL);
}
exit(127);
} else {
Expand Down Expand Up @@ -878,11 +878,11 @@ void dellistgroupnow(int mod)
sprintf(TmpBuf1, "%s/ezmlm-unsub", EZMLMDIR);
sprintf(TmpBuf, "%s/%s", RealDir, ActionUser);
if(mod == GROUP_MODERATOR) {
execl(TmpBuf1, "ezmlm-unsub", TmpBuf2, "mod", Newu, (char *)NULL);
execl(TmpBuf1, "ezmlm-unsub", TmpBuf, "mod", Newu, (char *)NULL);
} else if(mod == GROUP_DIGEST ) {
execl(TmpBuf1, "ezmlm-unsub", TmpBuf2, "digest", Newu, (char *)NULL);
execl(TmpBuf1, "ezmlm-unsub", TmpBuf, "digest", Newu, (char *)NULL);
} else {
execl(TmpBuf1, "ezmlm-unsub", TmpBuf2, Newu, (char *)NULL);
execl(TmpBuf1, "ezmlm-unsub", TmpBuf, Newu, (char *)NULL);
}
exit(127);
} else wait(&pid);
Expand Down Expand Up @@ -1026,8 +1026,8 @@ void build_option_str (char *type, char *param, char *options, char *description
}
/* selected is now true if all options for this radio button are true */

printh ("<INPUT TYPE=%s NAME=\"%H\" VALUE=\"%H\"%s> %s\n",
type, param, options, selected ? " CHECKED" : "", description);
printh ("<input type=\"%s\" name=\"%H\" value=\"%H\"%s> %s\n",
type, param, options, selected ? " checked=\"checked\"" : "", description);
}

int file_exists (char *filename)
Expand Down

0 comments on commit 3c8e5f5

Please sign in to comment.