diff options
author | Thorsten Kukuk <kukuk@suse.com> | 2014-12-17 10:25:33 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-12-17 10:25:33 -0500 |
commit | 52fbdcba91df95ef342949a958f00bc0470f5777 (patch) | |
tree | 09b6eadbba830642593f58e14e080735ba16f408 | |
parent | 0540136027e8d07f071089db3e1f1c2b9cc9d698 (diff) | |
download | rpcbind-52fbdcba91df95ef342949a958f00bc0470f5777.tar.gz |
rpcbind: remove error message on warmstart
Don't print an error message on warmstart if the
startup files don't exist (take two)
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/warmstart.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/warmstart.c b/src/warmstart.c index 85ecf96..b6eb73e 100644 --- a/src/warmstart.c +++ b/src/warmstart.c @@ -105,10 +105,11 @@ read_struct(char *filename, xdrproc_t structproc, void *list) if (debugging) fprintf(stderr, "rpcbind: using '%s' startup file\n", filename); - if (((fp = fopen(filename, "r")) == NULL) && errno != ENOENT) { - syslog(LOG_ERR, - "Cannot open '%s' file for reading, errno %d (%s)", - filename, errno, strerror(errno)); + if ((fp = fopen(filename, "r")) == NULL) { + if (errno != ENOENT) + syslog(LOG_ERR, + "Cannot open '%s' file for reading, errno %d (%s)", + filename, errno, strerror(errno)); goto error; } |