Marcus Meissner
13c4303162
- Fix ownership of /var/lib/rpcbind, else rpcbind cannot write warmstart files - Don't print error message about missing files in warmstart code if we do a coldstart [bnc#865807] (0025-rpcinfo-warmstat_no-warning-about-missing-file.patch) OBS-URL: https://build.opensuse.org/request/show/223970 OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=36
17 lines
498 B
Diff
17 lines
498 B
Diff
--- src/warmstart.c
|
|
+++ src/warmstart.c 2014/02/26 14:18:39
|
|
@@ -106,9 +106,10 @@
|
|
fprintf(stderr, "rpcbind: using '%s' startup file\n", filename);
|
|
|
|
if ((fp = fopen(filename, "r")) == NULL) {
|
|
- rpcbind_log_error(
|
|
- "Cannot open '%s' file for reading, errno %d (%s)",
|
|
- filename, errno, strerror(errno));
|
|
+ if (errno != ENOENT)
|
|
+ rpcbind_log_error(
|
|
+ "Cannot open '%s' file for reading, errno %d (%s)",
|
|
+ filename, errno, strerror(errno));
|
|
goto error;
|
|
}
|
|
|