Blame SOURCES/rpcbind-0.2.0-warmstart-noerror.patch
|
|
bec77d |
diff -up rpcbind-0.2.0/src/warmstart.c.orig rpcbind-0.2.0/src/warmstart.c
|
|
|
bec77d |
--- rpcbind-0.2.0/src/warmstart.c.orig 2015-07-30 13:54:52.236810612 -0400
|
|
|
bec77d |
+++ rpcbind-0.2.0/src/warmstart.c 2015-07-30 13:56:25.469502104 -0400
|
|
|
bec77d |
@@ -106,9 +106,10 @@ read_struct(char *filename, xdrproc_t st
|
|
|
bec77d |
fprintf(stderr, "rpcbind: using '%s' startup file\n", filename);
|
|
|
bec77d |
|
|
|
bec77d |
if ((fp = fopen(filename, "r")) == NULL) {
|
|
|
bec77d |
- syslog(LOG_ERR,
|
|
|
bec77d |
- "Cannot open '%s' file for reading, errno %d (%s)",
|
|
|
bec77d |
- filename, errno, strerror(errno));
|
|
|
bec77d |
+ if (errno != ENOENT)
|
|
|
bec77d |
+ syslog(LOG_ERR,
|
|
|
bec77d |
+ "Cannot open '%s' file for reading, errno %d (%s)",
|
|
|
bec77d |
+ filename, errno, strerror(errno));
|
|
|
bec77d |
goto error;
|
|
|
bec77d |
}
|
|
|
bec77d |
|