diff options
author | Bill Nottingham <notting@redhat.com> | 2000-03-07 17:19:49 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-03-07 17:19:49 +0000 |
commit | 69ff3f7a28f0d81ae1706834337b089ddf109e80 (patch) | |
tree | 1bed1144cf476697a00e09f381a2f3c952ad5da4 /src | |
parent | 0399f4af7c12be0f1095b1fb1fd44f75f6bf4174 (diff) | |
download | initscripts-69ff3f7a28f0d81ae1706834337b089ddf109e80.tar initscripts-69ff3f7a28f0d81ae1706834337b089ddf109e80.tar.gz initscripts-69ff3f7a28f0d81ae1706834337b089ddf109e80.tar.bz2 initscripts-69ff3f7a28f0d81ae1706834337b089ddf109e80.tar.xz initscripts-69ff3f7a28f0d81ae1706834337b089ddf109e80.zip |
don't ignore stat return code
Diffstat (limited to 'src')
-rw-r--r-- | src/minilogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minilogd.c b/src/minilogd.c index 09cd2f03..aba5e7c5 100644 --- a/src/minilogd.c +++ b/src/minilogd.c @@ -82,7 +82,8 @@ void runDaemon(int sock) { done = 0; /* Get stat info on /dev/log so we can later check to make sure we * still own it... */ - stat(_PATH_LOG,&s1); + if (stat(_PATH_LOG,&s1) != 0) + memset(&s1, '\0', sizeof(struct stat)); while (!done) { pfds.fd = sock; pfds.events = POLLIN|POLLPRI; |