Commit fc419399 fc4193991b38d861ca390eebcdeae12f16c1627f by Alain Magloire

* lib/mu_dmb.c(mu_check_perm): Reinforce

        by using (const char *name) in the argument.
        * pop3d/pop3d.c: The variable state was already
        use as a global, use "astate" in function pop3_parse_opt().
1 parent edc010f2
2002-03-13 Sergey Poznyakoff
2002-03-13 Alain Magloire
* lib/mu_dmb.c(mu_check_perm): Reinforce
by using (const char *name) in the argument.
* pop3d/pop3d.c: The variable state was already
use as a global, use "astate" in function pop3_parse_opt().
2002-03-13 Alain Magloire
* mail/echo.c: Make it aware of escape char '\'.
* mail/next.c: Should print the message also.
......
/* GNU mailutils - a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -53,7 +53,7 @@ mu_fcheck_perm (int fd, int mode)
}
int
mu_check_perm (char *name, int mode)
mu_check_perm (const char *name, int mode)
{
struct stat st;
......
/* GNU mailutils - a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -75,4 +75,4 @@ DBM_DATUM mu_dbm_nextkey __P((DBM_FILE db, DBM_DATUM key));
#endif
int mu_fcheck_perm __P((int fd, int mode));
int mu_check_perm __P((char *name, int mode));
int mu_check_perm __P((const char *name, int mode));
......
/* GNU mailutils - a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -42,7 +42,7 @@ static int pop3d_mainloop __P ((int, int));
static void pop3d_daemon_init __P ((void));
static void pop3d_daemon __P ((unsigned int, unsigned int));
static error_t pop3d_parse_opt __P((int key, char *arg,
struct argp_state *state));
struct argp_state *astate));
const char *argp_program_version = "pop3d (" PACKAGE ") " VERSION;
const char *argp_program_bug_address = "<bug-mailutils@gnu.org>";
static char doc[] = "GNU pop3d -- the POP3 daemon";
......@@ -65,12 +65,12 @@ static const char *pop3d_argp_capa[] = {
};
static error_t
pop3d_parse_opt (int key, char *arg, struct argp_state *state)
pop3d_parse_opt (int key, char *arg, struct argp_state *astate)
{
switch (key)
{
case ARGP_KEY_INIT:
state->child_inputs[1] = state->input;
astate->child_inputs[1] = astate->input;
break;
default:
......@@ -90,7 +90,7 @@ main (int argc, char **argv)
#ifdef USE_LIBPAM
if (!pam_service)
pam_service = "gnu-pop3d";
pam_service = (char *)"gnu-pop3d";
#endif
/* First we want our group to be mail so we can access the spool. */
......