diff options
| author | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:32:10 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:32:10 +0000 |
| commit | 396c42ba0615f3306ac3d21bbafd90f1c811b1b2 (patch) | |
| tree | 44ad43d23c238c9278fc3c6f67fdfe024e00a029 /src/initlog.c | |
| parent | c77b45194c4f51feb3b5b96c8ceac116f43aaa3d (diff) | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initlog.c b/src/initlog.c index ee7dbd42..23f5c508 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -201,7 +201,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); |
