aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-18 03:55:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-18 03:55:57 +0000
commit87e5598795b289a87f80ff147bebb6753c9ff73e (patch)
tree1a3a741cc543e13a3c415a45bd61141df2798e1c
parente725ff65ee13d608a1a20aa4e6c90b7d239ef688 (diff)
downloadfetchmail-87e5598795b289a87f80ff147bebb6753c9ff73e.tar.gz
fetchmail-87e5598795b289a87f80ff147bebb6753c9ff73e.tar.bz2
fetchmail-87e5598795b289a87f80ff147bebb6753c9ff73e.zip
Don't need to give execute permissions.
svn path=/trunk/; revision=899
-rw-r--r--daemon.c2
-rw-r--r--fetchmail.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/daemon.c b/daemon.c
index aa3917db..ce8eee54 100644
--- a/daemon.c
+++ b/daemon.c
@@ -154,7 +154,7 @@ nottyDetach:
}
if (logfile)
- fd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0777); /* stdout */
+ fd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666); /* stdout */
else
if (dup(fd) < 0) { /* stdout */
error(0, errno, "dup");
diff --git a/fetchmail.c b/fetchmail.c
index 417f0424..a351e84e 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -325,8 +325,12 @@ int main (int argc, char **argv)
openlog(program_name, LOG_PID, LOG_MAIL);
#endif
- if (poll_interval && !nodetach)
- daemonize(logfile, termhook);
+ if (poll_interval)
+ {
+ if (!nodetach)
+ daemonize(logfile, termhook);
+ error( 0, 0, "starting fetchmail %s.%s daemon ", RELEASE_ID, PATCHLEVEL);
+ }
/* beyond here we don't want more than one fetchmail running per user */
umask(0077);