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