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
9d0ff26d
...
9d0ff26d7a50b955210974e3fc1e9b86f7bd2316
authored
2004-06-12 10:29:10 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Minor fix
1 parent
7d1f1b45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
mail/from.c
mailbox/daemon.c
mail/from.c
View file @
9d0ff26
...
...
@@ -78,7 +78,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
date
[
0
]
=
0
;
if
(
util_getenv
(
NULL
,
"datefield"
,
Mail_env_boolean
,
0
)
==
0
&&
header_get_value
(
hdr
,
MU_HEADER_DATE
,
&
date
,
sizeof
(
date
),
NULL
)
==
0
)
&&
header_get_value
(
hdr
,
MU_HEADER_DATE
,
date
,
sizeof
(
date
),
NULL
)
==
0
)
{
time_t
t
;
if
(
mu_parse_date
(
date
,
&
t
,
NULL
)
==
0
)
...
...
mailbox/daemon.c
View file @
9d0ff26
...
...
@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <mailutils/daemon.h>
...
...
@@ -55,7 +56,8 @@ daemon_create_pidfile (const char *filename)
return
2
;
/* failure */
}
snprintf
(
pid_string
,
sizeof
(
pid_string
)
-
1
,
"%lu
\n
"
,
current_pid
);
snprintf
(
pid_string
,
sizeof
(
pid_string
)
-
1
,
"%lu
\n
"
,
(
unsigned
long
)
current_pid
);
write
(
fd
,
pid_string
,
strlen
(
pid_string
));
close
(
fd
);
...
...
Please
register
or
sign in
to post a comment