summaryrefslogtreecommitdiffstats
path: root/utils/statd/monitor.c
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2005-10-06 05:20:19 +0000
committerneilbrown <neilbrown>2005-10-06 05:20:19 +0000
commitf73e7b9f69835d483cee95e6a20b6307b9d16b77 (patch)
tree3c6f5f0c0677f0bc30018b9619ea32ffc9efebb9 /utils/statd/monitor.c
parentb51ebed58a610b3104e9f218d609715cd468b0ea (diff)
downloadnfs-utils-f73e7b9f69835d483cee95e6a20b6307b9d16b77.tar.gz
nfs-utils-f73e7b9f69835d483cee95e6a20b6307b9d16b77.tar.xz
nfs-utils-f73e7b9f69835d483cee95e6a20b6307b9d16b77.zip
Assorted changes from Steve Dickson
Diffstat (limited to 'utils/statd/monitor.c')
-rw-r--r--utils/statd/monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/statd/monitor.c b/utils/statd/monitor.c
index 88b33db..40e8f49 100644
--- a/utils/statd/monitor.c
+++ b/utils/statd/monitor.c
@@ -15,6 +15,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <errno.h>
#include <arpa/inet.h>
#include "misc.h"
#include "statd.h"
@@ -172,7 +173,7 @@ sm_mon_1_svc(struct mon *argp, struct svc_req *rqstp)
sprintf(path, "%s/%s", SM_DIR, mon_name);
if ((fd = open(path, O_WRONLY|O_SYNC|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
/* Didn't fly. We won't monitor. */
- note(N_ERROR, "creat(%s) failed: %m", path);
+ note(N_ERROR, "creat(%s) failed: %s", path, strerror (errno));
nlist_free(NULL, clnt);
free(path);
goto failure;