X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fmonitor.c;h=40e8f49ebb17d11c37d5fa84904f4a41a55aae15;hb=eddb23679087f5a9cc10752fe5f1dc535a0b3bf9;hp=88b33db0ab478ac22a4bd33384a4cb204a244665;hpb=189ccff8698f922ccefe52bc72f66da2c66fa087;p=nfs-utils.git 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 #include #include +#include #include #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;