X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fnotify.c;h=d7aa1ddc5e1d712426db9069cfbe15bdf8ab11cc;hb=a503848d423fe1681879936da7b526b15f7eca23;hp=89d2946abcc7d7c3ef6a36f26869fe742448d10c;hpb=8b7ad01b14df1e7529b9ba8a1ea17df0d6004ef9;p=nfs-utils.git diff --git a/utils/statd/notify.c b/utils/statd/notify.c index 89d2946..d7aa1dd 100644 --- a/utils/statd/notify.c +++ b/utils/statd/notify.c @@ -10,7 +10,9 @@ * NSM notify list handling. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif #include #include @@ -54,10 +56,10 @@ notify_hosts(void) || matchhostname(de->d_name, "localhost")) { char *fname; fname=xmalloc(strlen(SM_BAK_DIR)+sizeof(de->d_name)+2); - dprintf(L_DEBUG, "We're on our own notify list?!?"); - sprintf(fname, SM_BAK_DIR "/%s", de->d_name); + dprintf(N_DEBUG, "We're on our own notify list?!?"); + sprintf(fname, "%s/%s", SM_BAK_DIR, de->d_name); if (unlink(fname)) - log(L_ERROR, "unlink(%s): %s", + note(N_ERROR, "unlink(%s): %s", fname, strerror(errno)); free(fname); continue;