Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b86e7ac9
...
b86e7ac9575a2c5942e32683b42fa12777bde164
authored
2003-09-04 11:41:11 +0000
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added MU_ERR_UNSAFE_PERMS.
1 parent
feb1ad9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
include/mailutils/errno.h
mailbox/muerrno.c
include/mailutils/errno.h
View file @
b86e7ac
/* 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
));
...
...
mailbox/muerrno.c
View file @
b86e7ac
/* 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
);
}
...
...
Please
register
or
sign in
to post a comment