Added MU_ERR_UNSAFE_PERMS.
Showing
2 changed files
with
11 additions
and
5 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
24 | extern "C" { | 24 | extern "C" { |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #define MU_ERR_BASE 0x1000 | 27 | #define MU_ERR_BASE 0x1000 |
28 | 28 | ||
29 | #define MU_ERR_FAILURE (MU_ERR_BASE + 1) | 29 | #define MU_ERR_FAILURE (MU_ERR_BASE + 1) |
30 | #define MU_ERR_NO_HANDLER (MU_ERR_BASE + 2) | 30 | #define MU_ERR_NO_HANDLER (MU_ERR_BASE + 2) |
... | @@ -69,7 +69,10 @@ extern "C" { | ... | @@ -69,7 +69,10 @@ extern "C" { |
69 | 69 | ||
70 | #define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28) | 70 | #define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28) |
71 | #define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29) | 71 | #define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29) |
72 | 72 | ||
73 | #define MU_ERR_UNSAFE_PERMS (MU_ERR_BASE + 30) | ||
74 | /* unsafe file permissions */ | ||
75 | |||
73 | const char *mu_errname __P((int e)); | 76 | const char *mu_errname __P((int e)); |
74 | const char *mu_strerror __P((int e)); | 77 | const char *mu_strerror __P((int e)); |
75 | 78 | ... | ... |
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -81,6 +81,8 @@ mu_errname (int e) | ... | @@ -81,6 +81,8 @@ mu_errname (int e) |
81 | EN(MU_ERR_BAD_2047_INPUT); | 81 | EN(MU_ERR_BAD_2047_INPUT); |
82 | EN(MU_ERR_NOUSERNAME); | 82 | EN(MU_ERR_NOUSERNAME); |
83 | EN(MU_ERR_NOPASSWORD); | 83 | EN(MU_ERR_NOPASSWORD); |
84 | |||
85 | EN(MU_ERR_UNSAFE_PERMS); | ||
84 | } | 86 | } |
85 | 87 | ||
86 | return "SYSTEM ERROR"; | 88 | return "SYSTEM ERROR"; |
... | @@ -132,9 +134,10 @@ mu_strerror (int e) | ... | @@ -132,9 +134,10 @@ mu_strerror (int e) |
132 | 134 | ||
133 | ES(MU_ERR_NOUSERNAME, _("User name is not supplied")); | 135 | ES(MU_ERR_NOUSERNAME, _("User name is not supplied")); |
134 | ES(MU_ERR_NOPASSWORD, _("User password is not supplied")); | 136 | ES(MU_ERR_NOPASSWORD, _("User password is not supplied")); |
137 | |||
138 | ES(MU_ERR_UNSAFE_PERMS, _("Unsafe file permissions. Set 0600.")); | ||
135 | } | 139 | } |
136 | 140 | ||
137 | return strerror (e); | 141 | return strerror (e); |
138 | } | 142 | } |
139 | 143 | ||
140 | ... | ... |
-
Please register or sign in to post a comment