diff options
| author | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:19:35 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:19:35 +0000 |
| commit | 60bb4631907d34f4fc6336d5347230bf242724c6 (patch) | |
| tree | a58ee41584d2fb2b7a5bbbfec9de03ec875c1e70 /src/initlog.c | |
| parent | 07283abb5b381b2e638e3753eed3ba9c5656de68 (diff) | |
| download | initscripts-60bb4631907d34f4fc6336d5347230bf242724c6.tar.gz initscripts-60bb4631907d34f4fc6336d5347230bf242724c6.tar.xz initscripts-60bb4631907d34f4fc6336d5347230bf242724c6.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.c | 2 |
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); |
