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
273b365c
...
273b365c553aefffc799251cc2cc338b78d96240
authored
2002-03-08 22:41:48 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use mu_argp_parse. (deliver): Restored erroneously removed variable sb.
1 parent
860ac637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
mail.local/main.c
mail.local/main.c
View file @
273b365
...
...
@@ -46,6 +46,8 @@ static char args_doc[] = "recipient [recipient ...]";
static
struct
argp_option
options
[]
=
{
{
NULL
,
0
,
NULL
,
0
,
"mail.local specific switches"
,
0
},
{
"ex-multiple-delivery-success"
,
ARG_MULTIPLE_DELIVERY
,
NULL
,
0
,
"Don't return errors when delivering to multiple recipients"
,
0
},
{
"ex-quota-tempfail"
,
ARG_QUOTA_TEMPFAIL
,
NULL
,
0
,
...
...
@@ -82,10 +84,16 @@ static struct argp argp = {
parse_opt
,
args_doc
,
doc
,
mu_common_argp_child
,
NULL
,
NULL
,
NULL
};
static
const
char
*
argp_capa
[]
=
{
"mailutils"
,
"logging"
,
NULL
};
char
*
from
=
NULL
;
char
*
progfile_pattern
=
NULL
;
...
...
@@ -168,9 +176,9 @@ main (int argc, char *argv[])
close_fds
();
umask
(
0077
);
mu_argp_error_code
=
EX_CONFIG
;
mu_create_argcv
(
argc
,
argv
,
&
argc
,
&
argv
);
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
&
arg_index
,
NULL
);
mu_argp_error_code
=
EX_CONFIG
;
mu_argp_parse
(
&
argp
,
&
argc
,
&
argv
,
0
,
argp_capa
,
&
arg_index
,
NULL
);
openlog
(
"mail.local"
,
LOG_PID
,
log_facility
);
mu_error_set_print
(
mu_syslog_error_printer
);
...
...
@@ -436,6 +444,9 @@ deliver (FILE *fp, char *name)
stream_t
stream
;
size_t
size
;
int
failed
=
0
;
#if defined(USE_DBM)
struct
stat
sb
;
#endif
pw
=
mu_getpwnam
(
name
);
if
(
!
pw
)
...
...
Please
register
or
sign in
to post a comment