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
4d288c29
...
4d288c2946b56e4c3a9707ed11a70e16d4a4d968
authored
2005-08-12 16:05:16 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use strerror uniformly
1 parent
43a07d65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
mail/escape.c
mail/escape.c
View file @
4d288c2
...
...
@@ -111,7 +111,7 @@ parse_headers (FILE *fp, compose_env_t *env)
if
(
p
)
{
*
p
++
=
0
;
while
(
*
p
&&
isspace
(
*
p
))
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
value
=
strdup
(
p
);
name
=
strdup
(
buf
);
...
...
@@ -245,7 +245,7 @@ escape_sign (int argc ARG_UNUSED, char **argv, compose_env_t *env ARG_UNUSED)
if
(
!
fp
)
{
util_error
(
_
(
"Cannot open %s: %s"
),
name
,
strerror
(
errno
));
util_error
(
_
(
"Cannot open %s: %s"
),
name
,
mu_
strerror
(
errno
));
free
(
name
);
}
...
...
@@ -285,7 +285,7 @@ escape_cc (int argc, char **argv, compose_env_t *env)
/* ~d */
int
escape_deadletter
(
int
argc
ARG_UNUSED
,
char
**
argv
ARG_UNUSED
,
compose_env_t
*
env
ARG_UNUSED
)
compose_env_t
*
env
ARG_UNUSED
)
{
FILE
*
dead
=
fopen
(
getenv
(
"DEAD"
),
"r"
);
int
c
;
...
...
@@ -544,7 +544,7 @@ escape_read (int argc, char **argv, compose_env_t *env ARG_UNUSED)
inf
=
fopen
(
filename
,
"r"
);
if
(
!
inf
)
{
util_error
(
_
(
"Cannot open %s: %s"
),
filename
,
strerror
(
errno
));
util_error
(
_
(
"Cannot open %s: %s"
),
filename
,
mu_
strerror
(
errno
));
free
(
filename
);
return
1
;
}
...
...
@@ -599,7 +599,7 @@ escape_write (int argc, char **argv, compose_env_t *env)
if
(
!
fp
)
{
util_error
(
_
(
"Cannot open %s: %s"
),
filename
,
strerror
(
errno
));
util_error
(
_
(
"Cannot open %s: %s"
),
filename
,
mu_
strerror
(
errno
));
free
(
filename
);
return
1
;
}
...
...
@@ -636,7 +636,7 @@ escape_pipe (int argc, char **argv, compose_env_t *env)
if
(
pipe
(
p
))
{
util_error
(
"pipe: %s"
,
strerror
(
errno
));
util_error
(
"pipe: %s"
,
mu_
strerror
(
errno
));
return
1
;
}
...
...
@@ -649,7 +649,7 @@ escape_pipe (int argc, char **argv, compose_env_t *env)
close
(
p
[
0
]);
close
(
p
[
1
]);
close
(
fd
);
util_error
(
"fork: %s"
,
strerror
(
errno
));
util_error
(
"fork: %s"
,
mu_
strerror
(
errno
));
return
1
;
}
else
if
(
pid
==
0
)
...
...
@@ -674,7 +674,7 @@ escape_pipe (int argc, char **argv, compose_env_t *env)
xargv
[
i
]
=
argv
[
i
+
1
];
xargv
[
i
]
=
NULL
;
execvp
(
xargv
[
0
],
xargv
);
util_error
(
_
(
"Cannot exec process `%s': %s"
),
xargv
[
0
],
strerror
(
errno
));
util_error
(
_
(
"Cannot exec process `%s': %s"
),
xargv
[
0
],
mu_
strerror
(
errno
));
exit
(
1
);
}
else
...
...
@@ -714,7 +714,7 @@ escape_pipe (int argc, char **argv, compose_env_t *env)
struct
stat
st
;
if
(
fstat
(
fd
,
&
st
))
{
util_error
(
_
(
"Cannot stat output file: %s"
),
strerror
(
errno
));
util_error
(
_
(
"Cannot stat output file: %s"
),
mu_
strerror
(
errno
));
}
else
if
(
st
.
st_size
>
0
)
rc
=
0
;
...
...
Please
register
or
sign in
to post a comment