aboutsummaryrefslogtreecommitdiffstats
path: root/src/initlog.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-11-16 06:19:13 +0000
committerBill Nottingham <notting@redhat.com>2004-11-16 06:19:13 +0000
commitddef4757714ccc9d566b0fba4494528c32bcaa9d (patch)
tree5b290e86c415cd0d5d6731a77626e7b940eb8d9c /src/initlog.c
parent7a97a0567f5a3d489e9383a99ee2416f400acaa1 (diff)
downloadinitscripts-ddef4757714ccc9d566b0fba4494528c32bcaa9d.tar
initscripts-ddef4757714ccc9d566b0fba4494528c32bcaa9d.tar.gz
initscripts-ddef4757714ccc9d566b0fba4494528c32bcaa9d.tar.bz2
initscripts-ddef4757714ccc9d566b0fba4494528c32bcaa9d.tar.xz
initscripts-ddef4757714ccc9d566b0fba4494528c32bcaa9d.zip
fix various minilogd bogosities (uninitialized variable, handling of wrong-protocol connections, don't check atime) (#106338)
Diffstat (limited to 'src/initlog.c')
-rw-r--r--src/initlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initlog.c b/src/initlog.c
index 13a376ec..3b1cded6 100644
--- a/src/initlog.c
+++ b/src/initlog.c
@@ -213,7 +213,7 @@ int trySocket() {
strncpy(addr.sun_path,_PATH_LOG,sizeof(addr.sun_path)-1);
if (connect(s,(struct sockaddr *) &addr,sizeof(addr))<0) {
- if (errno == EPROTOTYPE) {
+ if (errno == EPROTOTYPE || errno == ECONNREFUSED) {
DDEBUG("connect failed (EPROTOTYPE), trying stream\n");
close(s);
s = socket(AF_LOCAL, SOCK_STREAM, 0);