git://git.exim.org
/
users
/
heiko
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move errno-protection into string_open_failed()
[users/heiko/exim.git]
/
src
/
src
/
filter.c
diff --git
a/src/src/filter.c
b/src/src/filter.c
index 402ad6ae53f52065f4e7df29b0f164ce2f67cc26..59c08f882ea224bb8d125fc30bbfc7860c3c254b 100644
(file)
--- a/
src/src/filter.c
+++ b/
src/src/filter.c
@@
-1952,7
+1952,7
@@
while (commands)
(long int)geteuid());
if (log_fd < 0)
{
(long int)geteuid());
if (log_fd < 0)
{
- if (
log_filename == NULL
)
+ if (
!log_filename
)
{
*error_pointer = US"attempt to obey \"logwrite\" command "
"without a previous \"logfile\"";
{
*error_pointer = US"attempt to obey \"logwrite\" command "
"without a previous \"logfile\"";
@@
-1961,7
+1961,7
@@
while (commands)
log_fd = Uopen(log_filename, O_CREAT|O_APPEND|O_WRONLY, log_mode);
if (log_fd < 0)
{
log_fd = Uopen(log_filename, O_CREAT|O_APPEND|O_WRONLY, log_mode);
if (log_fd < 0)
{
- *error_pointer = string_open_failed(
errno,
"filter log file \"%s\"",
+ *error_pointer = string_open_failed("filter log file \"%s\"",
log_filename);
return FF_ERROR;
}
log_filename);
return FF_ERROR;
}
@@
-1975,9
+1975,8
@@
while (commands)
}
}
else
}
}
else
- {
- DEBUG(D_filter) debug_printf_indent("skipping logwrite (verifying or testing)\n");
- }
+ DEBUG(D_filter)
+ debug_printf_indent("skipping logwrite (verifying or testing)\n");
break;
/* Header addition and removal is available only in the system filter. The
break;
/* Header addition and removal is available only in the system filter. The