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
beb2ac38
...
beb2ac38b7c883982bd19e8b3cf7738b62e67dd4
authored
2002-01-30 14:42:55 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(main): Return EX_USAGE on command line usage errors.
1 parent
1cbd9527
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
mail.local/main.c
mail.local/main.c
View file @
beb2ac3
...
...
@@ -86,7 +86,7 @@ main (int argc, char *argv[])
if
(
from
!=
NULL
)
{
mu_error
(
"multiple --from options"
);
return
1
;
return
EX_USAGE
;
}
from
=
optarg
;
break
;
...
...
@@ -143,7 +143,7 @@ main (int argc, char *argv[])
break
;
default:
return
1
;
return
EX_USAGE
;
}
argc
-=
optind
;
...
...
@@ -156,7 +156,7 @@ main (int argc, char *argv[])
if
(
!
maildir
)
{
mu_error
(
"Badly formed maildir: %s"
,
maildir
);
return
1
;
return
EX_CONFIG
;
}
#ifdef HAVE_MYSQL
...
...
@@ -462,6 +462,7 @@ deliver (FILE *fp, char *name)
{
mailer_err
(
"cannot lock mailbox '%s': %s"
,
path
,
strerror
(
status
));
mailbox_destroy
(
&
mbox
);
exit_code
=
EX_TEMPFAIL
;
return
;
}
...
...
Please
register
or
sign in
to post a comment