Commit b86e7ac9 b86e7ac9575a2c5942e32683b42fa12777bde164 by Wojciech Polak

Added MU_ERR_UNSAFE_PERMS.

1 parent feb1ad9a
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -24,7 +24,7 @@
extern "C" {
#endif
#define MU_ERR_BASE 0x1000
#define MU_ERR_BASE 0x1000
#define MU_ERR_FAILURE (MU_ERR_BASE + 1)
#define MU_ERR_NO_HANDLER (MU_ERR_BASE + 2)
......@@ -69,7 +69,10 @@ extern "C" {
#define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28)
#define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29)
#define MU_ERR_UNSAFE_PERMS (MU_ERR_BASE + 30)
/* unsafe file permissions */
const char *mu_errname __P((int e));
const char *mu_strerror __P((int e));
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -81,6 +81,8 @@ mu_errname (int e)
EN(MU_ERR_BAD_2047_INPUT);
EN(MU_ERR_NOUSERNAME);
EN(MU_ERR_NOPASSWORD);
EN(MU_ERR_UNSAFE_PERMS);
}
return "SYSTEM ERROR";
......@@ -132,9 +134,10 @@ mu_strerror (int e)
ES(MU_ERR_NOUSERNAME, _("User name is not supplied"));
ES(MU_ERR_NOPASSWORD, _("User password is not supplied"));
ES(MU_ERR_UNSAFE_PERMS, _("Unsafe file permissions. Set 0600."));
}
return strerror (e);
}
......